From e6a3a5a5c120082af8f45471646498d1ed957aa2 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 18 Mar 2010 00:06:21 -0500 Subject: Check to see if we sent the blank icon, and space appropriately. --- libdbusmenu-gtk/client.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. */ -- cgit v1.2.3