SimpleAction.newStateful

Creates a new stateful action.

All future state values must have the same #GVariantType as the initial state.

If the state #GVariant is floating, it is consumed.

Parameters

namethe name of the action
parameterTypethe type of the parameter that will be passed to handlers for the #GSimpleAction::activate signal, or null for no parameter
statethe initial state of the action

Returns

a new #GSimpleAction