Application.setAppMenu

Sets or unsets the application menu for @application.

This can only be done in the primary instance of the application, after it has been registered. #GApplication::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 #GActionMap interface to add actions, to respond to the user selecting these menu items.

class Application
void
setAppMenu

Parameters

appMenu MenuModel

a #GMenuModel, or %NULL

Meta