[gi] Fix parameter name typos in Gio docstrings
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Aug 2011 09:05:31 +0000 (11:05 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Aug 2011 09:38:19 +0000 (11:38 +0200)
Found by GIR compiler when building gobject-introspection:

gir/gio-2.0.c:33525: Warning: Gio: g_tls_password_set_description: unknown
parameter 'flags' in documentation comment, should be one of 'password',
'description'
gir/gio-2.0.c:14568: Warning: Gio: g_action_group_action_state_changed: unknown
parameter 'state' in documentation comment, should be one of 'action_group',
'action_name', 'value'

gio/gactiongroup.h
gio/gtlspassword.c

index cbab061..94602af 100644 (file)
@@ -104,7 +104,7 @@ struct _GActionGroupInterface
                                                         gboolean       enabled);
   void                  (* action_state_changed)       (GActionGroup   *action_group,
                                                         const gchar    *action_name,
-                                                        GVariant       *value);
+                                                        GVariant       *state);
 };
 
 GType                   g_action_group_get_type                         (void) G_GNUC_CONST;
index aa1c35c..d582164 100644 (file)
@@ -365,7 +365,7 @@ g_tls_password_get_description (GTlsPassword *password)
 /**
  * g_tls_password_set_description:
  * @password: a #GTlsPassword object
- * @flags: The description of the password
+ * @description: The description of the password
  *
  * Set a description string about what the password will be used for.
  *