diff options
author | Ted Gould <ted@gould.cx> | 2010-03-24 11:12:02 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-24 11:12:02 -0500 |
commit | d8debfa0837737c6ecc59960197ca59c071ead0b (patch) | |
tree | af96beb8a226b2111141a1c87203350123b150c9 | |
parent | f43fd84cd34b07a2966f858ca9c68985670fbe82 (diff) | |
download | libdbusmenu-d8debfa0837737c6ecc59960197ca59c071ead0b.tar.gz libdbusmenu-d8debfa0837737c6ecc59960197ca59c071ead0b.tar.bz2 libdbusmenu-d8debfa0837737c6ecc59960197ca59c071ead0b.zip |
Moving the requesition to be for all icons. No reason not to just double check.
-rw-r--r-- | libdbusmenu-gtk/client.c | 8 |
1 files 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); } |