aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-18 15:59:36 -0600
committerTed Gould <ted@gould.cx>2011-01-18 15:59:36 -0600
commitcedc4584f11e6fa90ae73db5ecc3019868a6323e (patch)
tree7d900d2d380118e38559dd81a86dbbf416e11543 /libdbusmenu-gtk/client.c
parent41037f771b0b4b30ab225a4515565c6ea1af0694 (diff)
downloadlibdbusmenu-cedc4584f11e6fa90ae73db5ecc3019868a6323e.tar.gz
libdbusmenu-cedc4584f11e6fa90ae73db5ecc3019868a6323e.tar.bz2
libdbusmenu-cedc4584f11e6fa90ae73db5ecc3019868a6323e.zip
Set the use-fallback property to TRUE on all our Images
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index b01156f..18a2cdd 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -789,6 +789,7 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, GVariant
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 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, GVariant
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);
}