diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-03-20 14:16:59 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-03-20 14:16:59 +0100 |
commit | 69e211f0116b3110eb7282bc11541ffe91a8faba (patch) | |
tree | ca6ed7cd39f54e525fe705c030e7b7644378462f | |
parent | 5cdbd5d4e73f839aab588938044bafb4e841b7c5 (diff) | |
download | ayatana-ido-69e211f0116b3110eb7282bc11541ffe91a8faba.tar.gz ayatana-ido-69e211f0116b3110eb7282bc11541ffe91a8faba.tar.bz2 ayatana-ido-69e211f0116b3110eb7282bc11541ffe91a8faba.zip |
idoapplicationmenuitem: request correct size for empty icons
Empty icons request more space than GTK_ICON_SIZE_MENU, which makes menu items
unnecessarily high.
-rw-r--r-- | src/idoapplicationmenuitem.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 ("")); |