aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-24 11:12:02 -0500
committerTed Gould <ted@gould.cx>2010-03-24 11:12:02 -0500
commitd8debfa0837737c6ecc59960197ca59c071ead0b (patch)
treeaf96beb8a226b2111141a1c87203350123b150c9
parentf43fd84cd34b07a2966f858ca9c68985670fbe82 (diff)
downloadlibdbusmenu-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.c8
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);
}