mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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.
This commit is contained in:
parent
ade2f1030a
commit
cf5a173a4f
@ -319,7 +319,7 @@ gtk_nothing_action_init (GtkNothingAction *self)
|
|||||||
* Gets the nothing action. This is an action that does nothing and where
|
* Gets the nothing action. This is an action that does nothing and where
|
||||||
* activating it always fails.
|
* activating it always fails.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): The nothing action
|
* Returns: (transfer none) (type GtkNothingAction): The nothing action
|
||||||
*/
|
*/
|
||||||
GtkShortcutAction *
|
GtkShortcutAction *
|
||||||
gtk_nothing_action_get (void)
|
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
|
* Create a custom action that calls the given @callback when
|
||||||
* activated.
|
* activated.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full): A new shortcut action
|
* Returns: (transfer full) (type GtkCallbackAction): A new shortcut action
|
||||||
*/
|
*/
|
||||||
GtkShortcutAction *
|
GtkShortcutAction *
|
||||||
gtk_callback_action_new (GtkShortcutFunc callback,
|
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()
|
* Gets the activate action. This is an action that calls gtk_widget_activate()
|
||||||
* on the given widget upon activation.
|
* on the given widget upon activation.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): The activate action
|
* Returns: (transfer none) (type GtkActivateAction): The activate action
|
||||||
*/
|
*/
|
||||||
GtkShortcutAction *
|
GtkShortcutAction *
|
||||||
gtk_activate_action_get (void)
|
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
|
* Gets the mnemonic action. This is an action that calls
|
||||||
* gtk_widget_mnemonic_activate() on the given widget upon activation.
|
* 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 *
|
GtkShortcutAction *
|
||||||
gtk_mnemonic_action_get (void)
|
gtk_mnemonic_action_get (void)
|
||||||
|
Loading…
Reference in New Issue
Block a user