[gtk/shortcuts-rebased-again: 127/129] shortcut action: Silence gtk-doc warnings



commit e38aae12044407a321495ac795ccb1fe13890d88
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 22 01:14:15 2019 -0400

    shortcut action: Silence gtk-doc warnings

 gtk/gtkshortcutaction.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkshortcutaction.c b/gtk/gtkshortcutaction.c
index bd2e8417f2..0511922c50 100644
--- a/gtk/gtkshortcutaction.c
+++ b/gtk/gtkshortcutaction.c
@@ -18,7 +18,7 @@
  */
 
 /**
- * SECTION:GtkShortcutAction
+ * SECTION:gtkshortcutaction
  * @Title: GtkShortcutAction
  * @Short_description: Actions to track if shortcuts should be activated
  * @See_also: #GtkShortcut
@@ -104,38 +104,38 @@ 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_int_inc (&action->ref_count);
+  g_atomic_int_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.
  *
- * If the reference was the last, the resources associated to the @action are
- * freed.
+ * If the reference was the last, the resources associated to the @self
+ * are 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_int_dec_and_test (&action->ref_count))
-    gtk_shortcut_action_finalize (action);
+  if (g_atomic_int_dec_and_test (&self->ref_count))
+    gtk_shortcut_action_finalize (self);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]