From 69e211f0116b3110eb7282bc11541ffe91a8faba Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 20 Mar 2014 14:16:59 +0100 Subject: idoapplicationmenuitem: request correct size for empty icons Empty icons request more space than GTK_ICON_SIZE_MENU, which makes menu items unnecessarily high. --- src/idoapplicationmenuitem.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/idoapplicationmenuitem.c b/src/idoapplicationmenuitem.c index c5910cf..9ca6d87 100644 --- a/src/idoapplicationmenuitem.c +++ b/src/idoapplicationmenuitem.c @@ -39,8 +39,12 @@ ido_application_menu_item_constructed (GObject *object) { IdoApplicationMenuItem *item = IDO_APPLICATION_MENU_ITEM (object); GtkWidget *grid; + gint icon_height; + + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &icon_height); item->icon = g_object_ref (gtk_image_new ()); + gtk_image_set_pixel_size (GTK_IMAGE (item->icon), icon_height); gtk_widget_set_margin_right (item->icon, 6); item->label = g_object_ref (gtk_label_new ("")); -- cgit v1.2.3