summaryrefslogtreecommitdiff
path: root/gtk/gtkmenusectionbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-28 00:00:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-28 00:00:16 -0400
commit691dd83580d2fa21f11b63bfb8671cd20eae9c9b (patch)
tree0548d5addd985dc08cf634ac4af3b211bb2df376 /gtk/gtkmenusectionbox.c
parentb9941d0dde2a044b191189162b67d378beb938bd (diff)
downloadgtk+-691dd83580d2fa21f11b63bfb8671cd20eae9c9b.tar.gz
Improve popover menu spacing
Make iconic buttons have a more reasonable height, and add some space above an iconic row. https://bugzilla.gnome.org/show_bug.cgi?id=732229
Diffstat (limited to 'gtk/gtkmenusectionbox.c')
-rw-r--r--gtk/gtkmenusectionbox.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index f9489aa0c5..1bc2472c22 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -91,6 +91,14 @@ gtk_menu_section_box_sync_separators (GtkMenuSectionBox *box,
gtk_container_foreach (GTK_CONTAINER (box->item_box), gtk_menu_section_box_sync_item, n_items);
+ if (box->iconic)
+ {
+ if (n_items_before > 0)
+ gtk_widget_set_margin_top (GTK_WIDGET (box->item_box), 10);
+ else
+ gtk_widget_set_margin_top (GTK_WIDGET (box->item_box), 0);
+ }
+
if (box->separator == NULL)
return;