aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-18 00:06:21 -0500
committerTed Gould <ted@gould.cx>2010-03-18 00:06:21 -0500
commite6a3a5a5c120082af8f45471646498d1ed957aa2 (patch)
tree8fc32f836cca1673e4065da4ca2f4fdd84fe34ab /libdbusmenu-gtk/client.c
parent6eef17fbf0844823f52d6971c5f597e366d6f24e (diff)
downloadlibdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.tar.gz
libdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.tar.bz2
libdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.zip
Check to see if we sent the blank icon, and space appropriately.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index 781326e..13a7499 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -525,6 +525,16 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GV
/* If there is no name, by golly we want no
icon either. */
gtkimage = NULL;
+ } else if (g_strcmp0(iconname, DBUSMENU_MENUITEM_ICON_NAME_BLANK) == 0) {
+ if (gtkimage != NULL) {
+ g_object_unref(gtkimage);
+ }
+
+ gint width, height;
+ gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
+
+ gtkimage = gtk_image_new();
+ gtk_widget_set_size_request(GTK_WIDGET(gtkimage), width, height);
} else {
/* Look to see if we want to have an icon with the 'ltr' or
'rtl' depending on what we're doing. */