Commit 6f2c1961 authored by Michael Catanzaro's avatar Michael Catanzaro
Browse files

application: Do not set app menu unless one exists

This causes an empty menu to appear in fallback mode, and in gnome-shell
it causes the app menu to not appear, lacking even the standard Quit
menu item.
parent 3f43f958
......@@ -205,7 +205,8 @@ dzl_application_startup (GApplication *app)
* we need to do it manually.
app_menu = dzl_menu_manager_get_menu_by_id (priv->menu_manager, "app-menu");
gtk_application_set_app_menu (GTK_APPLICATION (self), G_MENU_MODEL (app_menu));
if (g_menu_model_get_n_items (G_MENU_MODEL (app_menu)) > 0)
gtk_application_set_app_menu (GTK_APPLICATION (self), G_MENU_MODEL (app_menu));
* Now apply our deferred resources.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment