Gio.SimpleAction::activate
connect('activate', function (simpleAction, parameter: GLib.Variant, ): void);
Indicates that the action was just activated.
parameter will always be of the expected type. In the event that an incorrect type was given, no signal will be emitted.
Since GLib 2.40, if no handler is connected to this signal then the default behaviour for boolean-stated actions with a null parameter type is to toggle them via the Gio.SimpleAction::change-state signal. For stateful actions where the state type is equal to the parameter type, the default is to forward them directly to Gio.SimpleAction::change-state. This should allow almost all users of Gio.SimpleAction to connect only one handler or the other.
Since 2.28
- simpleAction
instance of Gio.SimpleAction that is emitting the signal
- parameter
the parameter to the activation