Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
The MATE About program is designed to display one of six messages at random
each time you launch the application, showcasing the fundamental values of
the MATE Project. Unfortunately, due to an off-by-one programming error
introduced many years ago, only the first five messages ever get displayed;
the sixth message, referring to where MATE got its name from, is never chosen.
This was due to a misunderstanding of the GLib function `g_random_int_range`:
The function is and always was designed to be passed an inclusive lower and
an exclusive upper value for the random integer, generating a random integer
that is greater than or equal to the lower value and less than the upper value
specified. The MATE About application errantly subtracted 1 from the upper
value itself, and thus only messages 1 through 5 were ever picked.
This commit removes the unnecessary subtraction.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fixes https://github.com/mate-desktop/mate-desktop/issues/431
|
|
Whilst working on the Reproducible Builds effort [0] we noticed that
mate-desktop could not be built reproducibly.
This is is because it generated a "release year" etc. based on the current
build date which was embedded in the binary and possibly other files. A
patch attached that uses SOURCE_DATE_EPOCH [1] instead.
As a side-effect, this fixes the (accidental) reset of MATE_DATE in the
Autotools build system in inherited from mate-desktop-environment.git.
This was originally filed in Debian as #951357 [2].
[0] https://reproducible-builds.org/
[1] https://reproducible-builds.org/specs/source-date-epoch/
[2] https://bugs.debian.org/951357
|
|
|
|
|
|
Test 1:
./autogen.sh --prefix=/usr
cat mate-about/mate-about.h
make && sudo make install
Test 2:
mkdir builddir
meson setup builddir --prefix=/usr
cat builddir/mate-about/mate-about.h
sudo ninja -C builddir install
|
|
|
|
Signed-off-by: Marty E. Plummer <[email protected]>
|
|
|
|
Signed-off-by: Marty E. Plummer <[email protected]>
|
|
Signed-off-by: Marty E. Plummer <[email protected]>
|
|
|
|
|
|
Update icon cache and avoid conflict with mate theme:
PNG icons are created if they are not present in icon folder.
To remove png icons:
cd icons; make clean-png-icons
$ cat test.py
import gtk
screen = gtk.gdk.screen_get_default()
icon_theme = gtk.icon_theme_get_for_screen(screen)
print icon_theme.lookup_icon("mate-desktop", 16, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 22, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 24, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 32, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 48, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 128, 0).get_filename()
print icon_theme.lookup_icon("mate-desktop", 256, 0).get_filename()
print icon_theme.lookup_icon("mate", 16, 0).get_filename()
print icon_theme.lookup_icon("mate", 22, 0).get_filename()
print icon_theme.lookup_icon("mate", 24, 0).get_filename()
print icon_theme.lookup_icon("mate", 32, 0).get_filename()
print icon_theme.lookup_icon("mate", 48, 0).get_filename()
print icon_theme.lookup_icon("mate", 128, 0).get_filename()
print icon_theme.lookup_icon("mate", 256, 0).get_filename()
print icon_theme.lookup_icon("mate", 1000, 0).get_filename()
$ python test.py
/usr/share/icons/hicolor/16x16/apps/mate-desktop.png
/usr/share/icons/hicolor/22x22/apps/mate-desktop.png
/usr/share/icons/hicolor/24x24/apps/mate-desktop.png
/usr/share/icons/hicolor/32x32/apps/mate-desktop.png
/usr/share/icons/hicolor/48x48/apps/mate-desktop.png
/usr/share/icons/hicolor/128x128/apps/mate-desktop.png
/usr/share/icons/hicolor/scalable/apps/mate-desktop.svg
/usr/share/icons/mate/16x16/apps/mate.png
/usr/share/icons/mate/22x22/apps/mate.png
/usr/share/icons/mate/24x24/apps/mate.png
/usr/share/icons/mate/32x32/apps/mate.png
/usr/share/icons/mate/48x48/apps/mate.png
/usr/share/icons/mate/scalable/apps/mate.svg
/usr/share/icons/mate/scalable/apps/mate.svg
/usr/share/icons/mate/scalable/apps/mate.svgT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This warns us of using symbols like g_assert_null not available
in GLib 2.36
|
|
|
|
|
|
|
|
This reverts commit a0a0a16fb72bb7b592d23ce29ca52c7d63c2e40b.
|
|
This reverts commit 6a0c8a93e30243232d63487c09ccb15a93755265.
|
|
|
|
|
|
Closes https://github.com/mate-desktop/mate-desktop/issues/132
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Deleted old code because now we require GTK 2.24
|
|
|