Only add separators when a section actually ends

This commit is contained in:
Matthias Clasen 2011-12-01 18:13:15 -05:00 committed by Ryan Lortie
parent 064999cb2a
commit 45e9d09eab

View File

@ -740,8 +740,6 @@ 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)
{
@ -751,6 +749,9 @@ append_items_from_model (GtkMenuShell *menu,
*need_separator = FALSE;
}
continue;
}
menuitem = create_menuitem_from_model (model, i, group);
if ((m = g_menu_model_get_item_link (model, i, G_MENU_LINK_SUBMENU)))