[gtk/wip/ebassi/shortcut: 3/5] Fix mismatch between argument name and documentation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/ebassi/shortcut: 3/5] Fix mismatch between argument name and documentation
- Date: Thu, 6 Feb 2020 18:41:08 +0000 (UTC)
commit 2a5f678e028a8cea0a949dbcf56103ee45f0ecb9
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Feb 6 18:27:23 2020 +0000
Fix mismatch between argument name and documentation
gtk/gtkshortcutaction.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkshortcutaction.c b/gtk/gtkshortcutaction.c
index 8f1b38b8a6..51f31037e4 100644
--- a/gtk/gtkshortcutaction.c
+++ b/gtk/gtkshortcutaction.c
@@ -103,25 +103,25 @@ gtk_shortcut_action_new (const GtkShortcutActionClass *action_class)
/**
* gtk_shortcut_action_ref:
- * @action: a #GtkShortcutAction
+ * @self: a #GtkShortcutAction
*
* Acquires a reference on the given #GtkShortcutAction.
*
* Returns: (transfer full): the #GtkShortcutAction with an additional reference
*/
GtkShortcutAction *
-gtk_shortcut_action_ref (GtkShortcutAction *action)
+gtk_shortcut_action_ref (GtkShortcutAction *self)
{
- g_return_val_if_fail (GTK_IS_SHORTCUT_ACTION (action), NULL);
+ g_return_val_if_fail (GTK_IS_SHORTCUT_ACTION (self), NULL);
- g_atomic_ref_count_inc (&action->ref_count);
+ g_atomic_ref_count_inc (&self->ref_count);
- return action;
+ return self;
}
/**
* gtk_shortcut_action_unref:
- * @action: (transfer full): a #GtkShortcutAction
+ * @self: (transfer full): a #GtkShortcutAction
*
* Releases a reference on the given #GtkShortcutAction.
*
@@ -129,12 +129,12 @@ gtk_shortcut_action_ref (GtkShortcutAction *action)
* freed.
*/
void
-gtk_shortcut_action_unref (GtkShortcutAction *action)
+gtk_shortcut_action_unref (GtkShortcutAction *self)
{
- g_return_if_fail (GTK_IS_SHORTCUT_ACTION (action));
+ g_return_if_fail (GTK_IS_SHORTCUT_ACTION (self));
- if (g_atomic_ref_count_dec (&action->ref_count))
- gtk_shortcut_action_finalize (action);
+ if (g_atomic_ref_count_dec (&self->ref_count))
+ gtk_shortcut_action_finalize (self);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]