Creates a new stateful action. state is the initial state of the action. All future state values must have the same GVariantType as the initial state. If the state GVariant is floating, it is consumed. Since 2.28
the name of the action
the type of the parameter to the activate function. [allow-none]
the initial state of the action
ConstructionException GTK+ fails to create the object.
See Implementation
Creates a new stateful action. state is the initial state of the action. All future state values must have the same GVariantType as the initial state. If the state GVariant is floating, it is consumed. Since 2.28