Method
Gtk.ShortcutAction.activate
Declaration [src]
gboolean
gtk_shortcut_action_activate (
GtkShortcutAction* self,
GtkShortcutActionFlags flags,
GtkWidget* widget,
GVariant* args
)
Description [src]
Activates the action on the widget
with the given args
.
Note that some actions ignore the passed in flags
, widget
or args
.
Activation of an action can fail for various reasons. If the action
is not supported by the widget
, if the args
don’t match the action
or if the activation otherwise had no effect, FALSE
will be returned.
Parameters
flags |
GtkShortcutActionFlags |
flags to activate with |
|
widget |
GtkWidget |
Target of the activation |
|
Ownership is not transferred to the callee | |
args |
GVariant* |
arguments to pass |
|
Can be NULL | |
Ownership is not transferred to the callee |