Never add separators to menubars

This commit is contained in:
Matthias Clasen 2011-12-02 18:18:58 -05:00 committed by Ryan Lortie
parent 2f78238872
commit b7de477611

View File

@ -628,7 +628,7 @@ append_items_from_model (GtkMenuShell *menu,
n = g_menu_model_get_n_items (model);
if (*need_separator && n > 0)
if (!GTK_IS_MENU_BAR (menu) && *need_separator && n > 0)
{
w = gtk_separator_menu_item_new ();
gtk_widget_show (w);
@ -654,7 +654,7 @@ append_items_from_model (GtkMenuShell *menu,
g_object_unref (m);
g_free (label);
if (*need_separator)
if (!GTK_IS_MENU_BAR (menu) && *need_separator)
{
w = gtk_separator_menu_item_new ();
gtk_widget_show (w);