signal callback delegate or function to connect
void callback(glib.variant.VariantG value, gio.simple_action.SimpleAction simpleAction)
value the requested value for the state (optional)
simpleAction the instance the signal is connected to (optional)
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to ChangeState signal.
Indicates that the action just received a request to change its state.
value will always be of the correct state type, i.e. the type of the initial state passed to gio.simple_action.SimpleAction.newStateful. If an incorrect type is given when requesting to change the state, this signal is not emitted.
If no handler is connected to this signal then the default behaviour is to call gio.simple_action.SimpleAction.setState to set the state to the requested value. If you connect a signal handler then no default action is taken. If the state should change then you must call gio.simple_action.SimpleAction.setState from the handler.
An example of a 'change-state' handler:
The handler need not set the state to the requested value. It could set it to any value at all, or take some other action.