diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-01 18:13:15 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:51:09 -0500 |
commit | 45e9d09eab9b1b7bd9357dfbb7afea70a86957a7 (patch) | |
tree | 0f3f56a0790a20ed8145ea527137f288f41fe4d5 /gtk/gtkapplicationwindow.c | |
parent | 064999cb2a0e7ef79499b94cdadf22b73274dbb0 (diff) | |
download | gtk+-45e9d09eab9b1b7bd9357dfbb7afea70a86957a7.tar.gz |
Only add separators when a section actually ends
Diffstat (limited to 'gtk/gtkapplicationwindow.c')
-rw-r--r-- | gtk/gtkapplicationwindow.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index ef308ed4a7..87acbef349 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -740,15 +740,16 @@ append_items_from_model (GtkMenuShell *menu, append_items_from_model (menu, m, group, need_separator, label); g_object_unref (m); g_free (label); - continue; - } - if (*need_separator) - { - w = gtk_separator_menu_item_new (); - gtk_widget_show (w); - gtk_menu_shell_append (menu, w); - *need_separator = FALSE; + if (*need_separator) + { + w = gtk_separator_menu_item_new (); + gtk_widget_show (w); + gtk_menu_shell_append (menu, w); + *need_separator = FALSE; + } + + continue; } menuitem = create_menuitem_from_model (model, i, group); |