[gtk+] Fix wrong refencences in the docs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix wrong refencences in the docs
- Date: Mon, 9 Jan 2012 22:31:20 +0000 (UTC)
commit 9cb4518a247dc386d3136424c5db95b6df45aacd
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 9 17:30:09 2012 -0500
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
gtk/gtkapplication.c | 12 ++++++------
gtk/gtkapplicationwindow.c | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 80d1a6a..e87dc45 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -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
*
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 341e577..cb073f3 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]