summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-22 01:14:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-06-24 22:40:29 +0000
commit7873f5c4eb01885910dc7066241e179e3a8abc9d (patch)
treea140a77b4f25bba92a5ea49127742f9d0c9b09eb
parent60479bedaefe452a43d6dfca6034f0807666b395 (diff)
downloadgtk+-7873f5c4eb01885910dc7066241e179e3a8abc9d.tar.gz
shortcut action: Silence gtk-doc warnings
-rw-r--r--gtk/gtkshortcutaction.c26
1 files 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);
}
/**