menushell: Hide model submenus by default

This commit is contained in:
Timm Bäder 2017-07-16 17:19:17 +02:00 committed by Matthias Clasen
parent b1354a184b
commit 2f1d962e56

View File

@ -1822,6 +1822,7 @@ gtk_menu_shell_tracker_insert_func (GtkMenuTrackerItem *item,
g_object_bind_property (item, "label", widget, "text", G_BINDING_SYNC_CREATE);
submenu = GTK_MENU_SHELL (gtk_menu_new ());
gtk_widget_hide (GTK_WIDGET (submenu));
/* We recurse directly here: we could use an idle instead to
* prevent arbitrary recursion depth. We could also do it