Widget.activateActionVariant

Looks up the action in the action groups associated with @widget and its ancestors, and activates it.

If the action is in an action group added with [method@Gtk.Widget.insert_action_group], the @name is expected to be prefixed with the prefix that was used when the group was inserted.

The arguments must match the actions expected parameter type, as returned by g_action_get_parameter_type().

class Widget
bool
activateActionVariant
(
string name
,)

Parameters

name string

the name of the action to activate

args Variant

parameters to use, or %NULL

Return Value

Type: bool

%TRUE if the action was activated, %FALSE if the action does not exist.

Meta