SimpleAction.this

Creates a new stateful action.

All future state values must have the same glib.VariantType as the initial state.

If the state glib.Variant is floating, it is consumed.

  1. this(GSimpleAction* gSimpleAction, bool ownedRef)
  2. this(string name, VariantType parameterType)
  3. this(string name, VariantType parameterType, Variant state)
    class SimpleAction

Parameters

name string

the name of the action

parameterType VariantType

the type of the parameter that will be passed to handlers for the activate signal, or NULL for no parameter

state Variant

the initial state of the action

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.28