SimpleAction.newStateful
gio.simple_action.SimpleAction newStateful(string name, glib.variant_type.VariantType parameterType, glib.variant.Variant state)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 | the name of the action |
parameterType | the type of the parameter that will be passed to handlers for the #GSimpleAction::activate signal, or null for no parameter |
state | the initial state of the action |
Returns
a new #GSimpleAction