mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
Only add separators when a section actually ends
This commit is contained in:
parent
064999cb2a
commit
45e9d09eab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user