Clean up application / menu apis
We have a couple of apis related to this:
- gtk_application_set_app_menu
- gtk_application_set_menubar
- gtk_application_window_set_show_menubar
gtk_application_set_menubar is only relevant on OS X.
With app menus gone in GNOME, gtk_application_set_app_menu now gets the same automatic fallback as gtk_application_set_menubar, which is a menubar that appears out of the blue in GtkApplicationWindow.
Options:
- Add something like GtkAppMenuButton, which knows how to pull the right menu out of the application (or maybe just give a special 'menu-id' property to GtkMenuButton ?)
- Remove all the menu handling from GtkApplication and GtkApplicationWindow, in particular the menubar fallback
- Leave the menubar handling as an OS X platform api
Edited by Matthias Clasen