Commit 7873f5c4 authored by Matthias Clasen's avatar Matthias Clasen

shortcut action: Silence gtk-doc warnings

parent 60479bed
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment