diff options
author | Ted Gould <ted@gould.cx> | 2010-03-18 00:06:21 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-18 00:06:21 -0500 |
commit | e6a3a5a5c120082af8f45471646498d1ed957aa2 (patch) | |
tree | 8fc32f836cca1673e4065da4ca2f4fdd84fe34ab | |
parent | 6eef17fbf0844823f52d6971c5f597e366d6f24e (diff) | |
download | libdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.tar.gz libdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.tar.bz2 libdbusmenu-e6a3a5a5c120082af8f45471646498d1ed957aa2.zip |
Check to see if we sent the blank icon, and space appropriately.
-rw-r--r-- | libdbusmenu-gtk/client.c | 10 |
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. */ |