[gtk/ebassi/for-master: 2/2] Use consistent argument name
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 2/2] Use consistent argument name
- Date: Fri, 4 Sep 2020 11:10:03 +0000 (UTC)
commit f7f0bc036973bf37855df29283d47bbe115dacf4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Sep 4 12:05:01 2020 +0100
Use consistent argument name
Declarations, definitions, and gtk-doc stanzas should use the same name
for arguments. Otherwise both g-ir-scanner and gtk-doc will complain
that they can't find the argument.
gtk/gtktogglebutton.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index 45019471b7..9c1b5af385 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -440,7 +440,7 @@ gtk_toggle_button_toggled (GtkToggleButton *toggle_button)
/**
* gtk_toggle_button_set_group:
- * @self: a #GtkToggleButton
+ * @toggle_button: a #GtkToggleButton
* @group: (nullable) (transfer none): another #GtkToggleButton to
* form a group with
*
@@ -454,13 +454,13 @@ gtk_toggle_button_toggled (GtkToggleButton *toggle_button)
*/
void
-gtk_toggle_button_set_group (GtkToggleButton *self,
+gtk_toggle_button_set_group (GtkToggleButton *toggle_button,
GtkToggleButton *group)
{
- GtkToggleButtonPrivate *priv = gtk_toggle_button_get_instance_private (self);
+ GtkToggleButtonPrivate *priv = gtk_toggle_button_get_instance_private (toggle_button);
GtkToggleButtonPrivate *group_priv = gtk_toggle_button_get_instance_private (group);
- g_return_if_fail (GTK_IS_TOGGLE_BUTTON (self));
+ g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button));
if (!group)
{
@@ -477,7 +477,7 @@ gtk_toggle_button_set_group (GtkToggleButton *self,
priv->group_next = NULL;
priv->group_prev = NULL;
- g_object_notify_by_pspec (G_OBJECT (self), toggle_button_props[PROP_GROUP]);
+ g_object_notify_by_pspec (G_OBJECT (toggle_button), toggle_button_props[PROP_GROUP]);
return;
}
@@ -489,12 +489,12 @@ gtk_toggle_button_set_group (GtkToggleButton *self,
{
GtkToggleButtonPrivate *prev = gtk_toggle_button_get_instance_private (group_priv->group_prev);
- prev->group_next = self;
+ prev->group_next = toggle_button;
priv->group_prev = group_priv->group_prev;
}
- group_priv->group_prev = self;
+ group_priv->group_prev = toggle_button;
priv->group_next = group;
- g_object_notify_by_pspec (G_OBJECT (self), toggle_button_props[PROP_GROUP]);
+ g_object_notify_by_pspec (G_OBJECT (toggle_button), toggle_button_props[PROP_GROUP]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]