aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-25 16:22:45 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-25 16:22:45 -0500
commitb4cc30dc8bf0b36f73417050e4e8c84554715b00 (patch)
tree83427baaf68bf940a0b5f567c0ae1c3cd50678c3
parent124564dd1632b5a05a9665bae2d6c6afa7d9eb46 (diff)
downloadayatana-ido-b4cc30dc8bf0b36f73417050e4e8c84554715b00.tar.gz
ayatana-ido-b4cc30dc8bf0b36f73417050e4e8c84554715b00.tar.bz2
ayatana-ido-b4cc30dc8bf0b36f73417050e4e8c84554715b00.zip
add a 6px margin between the icon and primary text iff the icon is visible
-rw-r--r--src/idobasicmenuitem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idobasicmenuitem.c b/src/idobasicmenuitem.c
index a1eadbf..f07cc14 100644
--- a/src/idobasicmenuitem.c
+++ b/src/idobasicmenuitem.c
@@ -203,6 +203,12 @@ ido_basic_menu_item_init (IdoBasicMenuItem *self)
gtk_grid_attach (grid, p->image, 0, 0, 1, 1);
gtk_grid_attach (grid, p->label, 1, 0, 1, 1);
gtk_grid_attach (grid, p->secondary_label, 2, 0, 1, 1);
+ g_object_set (p->image,
+ "halign", GTK_ALIGN_START,
+ "hexpand", FALSE,
+ "valign", GTK_ALIGN_CENTER,
+ "margin-right", 6,
+ NULL);
g_object_set (p->label,
"halign", GTK_ALIGN_START,
"hexpand", TRUE,