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

name string

the name of the action

parameterType glib.variant_type.VariantType

the type of the parameter that will be passed to handlers for the #GSimpleAction::activate signal, or null for no parameter

state glib.variant.VariantG

the initial state of the action

Return Value

Type: gio.simple_action.SimpleAction

a new #GSimpleAction