[gtk/ebassi/for-master] Add type annotations for GtkShortcutAction types



commit cf5a173a4f941bb07b2a1e0585828a1a6cf9c244
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Nov 17 14:17:26 2020 +0000

    Add type annotations for GtkShortcutAction types
    
    The constructors and singleton getters need proper annotations for their
    return type, given that we return a base type.

 gtk/gtkshortcutaction.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkshortcutaction.c b/gtk/gtkshortcutaction.c
index 431a1202ce..6a04372439 100644
--- a/gtk/gtkshortcutaction.c
+++ b/gtk/gtkshortcutaction.c
@@ -319,7 +319,7 @@ gtk_nothing_action_init (GtkNothingAction *self)
  * Gets the nothing action. This is an action that does nothing and where
  * activating it always fails.
  *
- * Returns: (transfer none): The nothing action
+ * Returns: (transfer none) (type GtkNothingAction): The nothing action
  */
 GtkShortcutAction *
 gtk_nothing_action_get (void)
@@ -409,7 +409,7 @@ gtk_callback_action_init (GtkCallbackAction *self)
  * Create a custom action that calls the given @callback when
  * activated.
  *
- * Returns: (transfer full): A new shortcut action
+ * Returns: (transfer full) (type GtkCallbackAction): A new shortcut action
  */
 GtkShortcutAction *
 gtk_callback_action_new (GtkShortcutFunc callback,
@@ -491,7 +491,7 @@ gtk_activate_action_init (GtkActivateAction *self)
  * Gets the activate action. This is an action that calls gtk_widget_activate()
  * on the given widget upon activation.
  *
- * Returns: (transfer none): The activate action
+ * Returns: (transfer none) (type GtkActivateAction): The activate action
  */
 GtkShortcutAction *
 gtk_activate_action_get (void)
@@ -566,7 +566,7 @@ gtk_mnemonic_action_init (GtkMnemonicAction *self)
  * Gets the mnemonic action. This is an action that calls
  * gtk_widget_mnemonic_activate() on the given widget upon activation.
  *
- * Returns: (transfer none): The mnemonic action
+ * Returns: (transfer none) (type GtkMnemonicAction): The mnemonic action
  */
 GtkShortcutAction *
 gtk_mnemonic_action_get (void)


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