ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02796
[Merge] lp:~ted/dbusmenu/use-fallback-always into lp:dbusmenu
Ted Gould has proposed merging lp:~ted/dbusmenu/use-fallback-always into lp:dbusmenu.
Requested reviews:
DBus Menu Team (dbusmenu-team)
For more details, see:
https://code.launchpad.net/~ted/dbusmenu/use-fallback-always/+merge/46696
Set the new fallback property to TRUE on all images that are created.
--
https://code.launchpad.net/~ted/dbusmenu/use-fallback-always/+merge/46696
Your team ayatana-commits is subscribed to branch lp:dbusmenu.
=== modified file 'libdbusmenu-gtk/client.c'
--- libdbusmenu-gtk/client.c 2011-01-13 15:54:36 +0000
+++ libdbusmenu-gtk/client.c 2011-01-18 22:04:00 +0000
@@ -789,6 +789,7 @@
gtkimage = NULL;
} else if (g_strcmp0(iconname, DBUSMENU_MENUITEM_ICON_NAME_BLANK) == 0) {
gtkimage = gtk_image_new();
+ g_object_set(G_OBJECT(gtkimage), "use-fallback", TRUE, NULL);
} else {
/* Look to see if we want to have an icon with the 'ltr' or
'rtl' depending on what we're doing. */
@@ -807,6 +808,7 @@
can just convert it to this name. */
if (gtkimage == NULL) {
gtkimage = gtk_image_new_from_icon_name(finaliconname, GTK_ICON_SIZE_MENU);
+ g_object_set(G_OBJECT(gtkimage), "use-fallback", TRUE, NULL);
} else {
gtk_image_set_from_icon_name(GTK_IMAGE(gtkimage), finaliconname, GTK_ICON_SIZE_MENU);
}
Follow ups