[gtk+] application: use the same variable names in definitions and declarations
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] application: use the same variable names in definitions and declarations
- Date: Wed, 21 Dec 2011 10:34:08 +0000 (UTC)
commit 9ae0ffb9cbbafcc9ad3601d4b70c58d51933f30e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 21 11:29:39 2011 +0100
application: use the same variable names in definitions and declarations
gobject-introspection will be confused and mark the methods as not
introspectable otherwise.
gtk/gtkapplication.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 3ef616e..30f3ff4 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -756,7 +756,7 @@ gtk_application_remove_accelerator (GtkApplication *application,
/**
* gtk_application_set_app_menu:
* @application: a #GtkApplication
- * @app_menu: (allow-none): a #GMenuModel, or %NULL
+ * @model: (allow-none): a #GMenuModel, or %NULL
*
* Sets or unsets the application menu for @application.
*
@@ -773,9 +773,9 @@ gtk_application_remove_accelerator (GtkApplication *application,
*/
void
gtk_application_set_app_menu (GtkApplication *application,
- GMenuModel *app_menu)
+ GMenuModel *model)
{
- g_object_set (application, "app-menu", app_menu, NULL);
+ g_object_set (application, "app-menu", model, NULL);
}
/**
@@ -803,7 +803,7 @@ gtk_application_get_app_menu (GtkApplication *application)
/**
* gtk_application_set_menubar:
* @application: a #GtkApplication
- * @menubar: (allow-none): a #GMenuModel, or %NULL
+ * @model: (allow-none): a #GMenuModel, or %NULL
*
* Sets or unsets the menubar for windows of @application.
*
@@ -821,9 +821,9 @@ gtk_application_get_app_menu (GtkApplication *application)
*/
void
gtk_application_set_menubar (GtkApplication *application,
- GMenuModel *menubar)
+ GMenuModel *model)
{
- g_object_set (application, "menubar", menubar, NULL);
+ g_object_set (application, "menubar", model, NULL);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]