| Thread Previous • Date Previous • Date Next • Thread Next |
Merge authors: Ted Gould (ted) Related merge proposals: https://code.launchpad.net/~ted/dbusmenu/use-fallback-always/+merge/46696 proposed by: Ted Gould (ted) review: Approve - Mikkel Kamstrup Erlandsen (kamstrup) ------------------------------------------------------------ revno: 187 [merge] committer: Ted Gould <ted@xxxxxxxx> branch nick: trunk timestamp: Wed 2011-01-19 09:14:56 -0600 message: Setup images to use the fallbacks. modified: libdbusmenu-gtk/client.c -- lp:dbusmenu https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk Your team ayatana-commits is subscribed to branch lp:dbusmenu. To unsubscribe from this branch go to https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk/+edit-subscription
=== modified file 'libdbusmenu-gtk/client.c'
--- libdbusmenu-gtk/client.c 2011-01-13 15:54:36 +0000
+++ libdbusmenu-gtk/client.c 2011-01-18 21:59:36 +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);
}
| Thread Previous • Date Previous • Date Next • Thread Next |