Docs: GtkApplication: Hint about GtkActionMap

This commit is contained in:
Murray Cumming
2012-03-22 19:49:47 +01:00
parent b0fc821c02
commit 79758e3d98

View File

@ -75,12 +75,15 @@
* associated with #GtkApplicationWindow and to the 'activate' and * associated with #GtkApplicationWindow and to the 'activate' and
* 'open' #GApplication methods. * 'open' #GApplication methods.
* *
* To set an application menu on a GtkApplication, use * To set an application menu for a GtkApplication, use
* gtk_application_set_app_menu(). The #GMenuModel that this function * gtk_application_set_app_menu(). The #GMenuModel that this function
* expects is usually constructed using #GtkBuilder, as seen in the * expects is usually constructed using #GtkBuilder, as seen in the
* following example. To set a menubar that will be automatically picked * following example. To specify a menubar that will be shown by
* up by #GApplicationWindows, use gtk_application_set_menubar(). GTK+ * #GApplicationWindows, use gtk_application_set_menubar(). Use the base
* makes these menus appear as expected, depending on the platform * #GActionMap interface to add actions, to respond to the user
* selecting these menu items.
*
* GTK+ displays these menus as expected, depending on the platform
* the application is running on. * the application is running on.
* *
* <figure label="Menu integration in OS X"> * <figure label="Menu integration in OS X">
@ -1005,6 +1008,9 @@ gtk_application_remove_accelerator (GtkApplication *application,
* If supported, the application menu will be rendered by the desktop * If supported, the application menu will be rendered by the desktop
* environment. * environment.
* *
* Use the base #GActionMap interface to add actions, to respond to the user
* selecting these menu items.
*
* Since: 3.4 * Since: 3.4
*/ */
void void
@ -1069,6 +1075,9 @@ gtk_application_get_app_menu (GtkApplication *application)
* example, the application menu may be rendered by the desktop shell * example, the application menu may be rendered by the desktop shell
* while the menubar (if set) remains in each individual window. * while the menubar (if set) remains in each individual window.
* *
* Use the base #GActionMap interface to add actions, to respond to the user
* selecting these menu items.
*
* Since: 3.4 * Since: 3.4
*/ */
void void