activate_action_variant


Description:

public bool activate_action_variant (string name, Variant? args)

Looks up the action in the action groups associated with this 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()`.

Parameters:

this

a `GtkWidget`

name

the name of the action to activate

args

parameters to use

Returns:

true if the action was activated, false if the action does not exist.