macos: Fix up app menu support

We were forgetting to add the newly loaded app menu to the
combined menubar. Pointed out by Dominik Reichardt in #6524.

Fixes: #6524
This commit is contained in:
Matthias Clasen 2024-03-18 07:43:00 -04:00
parent b4f5432d5a
commit 259ad83de9

View File

@ -223,8 +223,7 @@ gtk_application_impl_quartz_startup (GtkApplicationImpl *impl,
g_object_set_data_full (G_OBJECT (impl), "APP_DATA", g_object_ref (app_menu), g_object_unref);
g_object_unref (builder);
}
else
gtk_application_impl_quartz_set_app_menu (impl, app_menu);
gtk_application_impl_quartz_set_app_menu (impl, app_menu);
/* This may or may not add an item to 'combined' */
gtk_application_impl_set_menubar (impl, gtk_application_get_menubar (impl->application));