activate_action


Description:

public bool activate_action (string name, string? format_string, ...)

Activates an action for the widget.

The action is looked up in the action groups associated with this and its ancestors.

This is a wrapper around [method@Gtk.Widget.activate_action_variant] that constructs the args variant according to format_string.

Parameters:

this

a widget

name

the name of the action to activate

format_string

`GVariant` format string for arguments

...

arguments, as given by format string

Returns:

true if the action was activated