forked from AuroraMiddleware/gtk
Fix wrong refencences in the docs
Replace all references to g_application_set_app_menu and g_application_set_menubar by their gtk variants, which actually exist. Pointed out in bug 667546
This commit is contained in:
parent
64f3347cd7
commit
9cb4518a24
@ -76,10 +76,10 @@
|
||||
* 'open' #GApplication methods.
|
||||
*
|
||||
* To set an application menu on a GtkApplication, use
|
||||
* g_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
|
||||
* following example. To set a menubar that will be automatically picked
|
||||
* up by #GApplicationWindows, use g_application_set_menubar(). GTK+
|
||||
* up by #GApplicationWindows, use gtk_application_set_menubar(). GTK+
|
||||
* makes these menus appear as expected, depending on the platform
|
||||
* the application is running on.
|
||||
*
|
||||
@ -855,8 +855,8 @@ gtk_application_get_windows (GtkApplication *application)
|
||||
* with a "win." prefix.
|
||||
*
|
||||
* GtkApplication also extracts accelerators out of 'accel' attributes
|
||||
* in the #GMenuModels passed to g_application_set_app_menu() and
|
||||
* g_application_set_menubar(), which is usually more convenient
|
||||
* in the #GMenuModels passed to gtk_application_set_app_menu() and
|
||||
* gtk_application_set_menubar(), which is usually more convenient
|
||||
* than calling this function for each accelerator.
|
||||
*
|
||||
* Since: 3.4
|
||||
@ -958,7 +958,7 @@ gtk_application_set_app_menu (GtkApplication *application,
|
||||
* @application: a #GtkApplication
|
||||
*
|
||||
* Returns the menu model that has been set with
|
||||
* g_application_set_app_menu().
|
||||
* gtk_application_set_app_menu().
|
||||
*
|
||||
* Returns: (transfer none): the application menu of @application
|
||||
*
|
||||
@ -1008,7 +1008,7 @@ gtk_application_set_menubar (GtkApplication *application,
|
||||
* @application: a #GtkApplication
|
||||
*
|
||||
* Returns the menu model that has been set with
|
||||
* g_application_set_menubar().
|
||||
* gtk_application_set_menubar().
|
||||
*
|
||||
* Returns: (transfer none): the menubar for windows of @application
|
||||
*
|
||||
|
@ -43,8 +43,8 @@
|
||||
* GtkApplicationWindow is a #GtkWindow subclass that offers some
|
||||
* extra functionality for better integration with #GtkApplication
|
||||
* features. Notably, it can handle both the application menu as well
|
||||
* as the menubar. See g_application_set_app_menu() and
|
||||
* g_application_set_menubar().
|
||||
* as the menubar. See gtk_application_set_app_menu() and
|
||||
* gtk_application_set_menubar().
|
||||
*
|
||||
* This class implements the #GActionGroup and #GActionMap interfaces,
|
||||
* to let you add window-specific actions that will be exported by the
|
||||
@ -88,8 +88,8 @@
|
||||
* " </submenu>"
|
||||
* " </menu>"
|
||||
* "</interface>");
|
||||
* g_application_set_menubar (G_APPLICATION (app),
|
||||
* G_MENU_MODEL (gtk_builder_get_object (builder, "menubar")));
|
||||
* gtk_application_set_menubar (G_APPLICATION (app),
|
||||
* G_MENU_MODEL (gtk_builder_get_object (builder, "menubar")));
|
||||
* g_object_unref (builder);
|
||||
*
|
||||
* ...
|
||||
@ -902,8 +902,8 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class)
|
||||
*
|
||||
* If this property is %TRUE, the window will display a menubar
|
||||
* that includes the app menu and menubar, unless these are
|
||||
* shown by the desktop shell. See g_application_set_app_menu()
|
||||
* and g_application_set_menubar().
|
||||
* shown by the desktop shell. See gtk_application_set_app_menu()
|
||||
* and gtk_application_set_menubar().
|
||||
*
|
||||
* If %FALSE, the window will not display a menubar, regardless
|
||||
* of whether the desktop shell is showing the menus or not.
|
||||
|
Loading…
Reference in New Issue
Block a user