Widget.activateAction

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].

class Widget
bool
activateAction
(
string name
,)

Parameters

name string

the name of the action to activate

args glib.variant.VariantG

parameters to use

Return Value

Type: bool

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