From d8debfa0837737c6ecc59960197ca59c071ead0b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 24 Mar 2010 11:12:02 -0500 Subject: Moving the requesition to be for all icons. No reason not to just double check. --- libdbusmenu-gtk/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index ba01800..d93bb93 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -530,11 +530,7 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GV 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. */ @@ -595,6 +591,10 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GV } if (gtkimage != NULL) { + gint width, height; + gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height); + + gtk_widget_set_size_request(GTK_WIDGET(gtkimage), width, height); gtk_misc_set_alignment(GTK_MISC(gtkimage), 0.0, 0.5); } -- cgit v1.2.3