aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-03-21 06:56:47 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-21 06:56:47 +0000
commit96d791b30c9148a05ec876d1ce3086e4bb275648 (patch)
treeca6ed7cd39f54e525fe705c030e7b7644378462f /src
parent5cdbd5d4e73f839aab588938044bafb4e841b7c5 (diff)
parent69e211f0116b3110eb7282bc11541ffe91a8faba (diff)
downloadayatana-ido-96d791b30c9148a05ec876d1ce3086e4bb275648.tar.gz
ayatana-ido-96d791b30c9148a05ec876d1ce3086e4bb275648.tar.bz2
ayatana-ido-96d791b30c9148a05ec876d1ce3086e4bb275648.zip
idoapplicationmenuitem: request correct size for empty icons
Empty icons request more space than GTK_ICON_SIZE_MENU, which makes menu items unnecessarily high.
Diffstat (limited to 'src')
-rw-r--r--src/idoapplicationmenuitem.c4
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 (""));