aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-19 09:14:56 -0600
committerTed Gould <ted@gould.cx>2011-01-19 09:14:56 -0600
commit46d3e261e397ff5c89eff13d9df4f20ac46b2cc8 (patch)
treedfa3c17da3dab645f2366b4f064fac8a18b05eb9 /libdbusmenu-gtk/client.c
parent2ccba1f88d893323c7374399c3f84267d8773ebb (diff)
parentcedc4584f11e6fa90ae73db5ecc3019868a6323e (diff)
downloadlibdbusmenu-46d3e261e397ff5c89eff13d9df4f20ac46b2cc8.tar.gz
libdbusmenu-46d3e261e397ff5c89eff13d9df4f20ac46b2cc8.tar.bz2
libdbusmenu-46d3e261e397ff5c89eff13d9df4f20ac46b2cc8.zip
Setup images to use the fallbacks.
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);
}