[ Version ( since = "3.4" ) ]
public void set_app_menu (MenuModel? app_menu)
Sets or unsets the application menu for this.
This can only be done in the primary instance of the application, after it has been registered. startup is a good place to call this.
The application menu is a single menu containing items that typically impact the application as a whole, rather than acting on a specific window or document. For example, you would expect to see “Preferences” or “Quit” in an application menu, but not “Save” or “Print”.
If supported, the application menu will be rendered by the desktop environment.
Use the base ActionMap interface to add actions, to respond to the user selecting these menu items.
this | |
app_menu |
a MenuModel, or null |