Widget.activateAction

bool activateAction(string name, glib.variant.Variant args = null)

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 gtk.widget.Widget.insertActionGroup, 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 [gio.action.Action.getParameterType].

Parameters

namethe name of the action to activate
argsparameters to use

Returns

true if the action was activated, false if the

action does not exist.