[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.28" ) ]
public SimpleAction (string name, VariantType? parameter_type)
Creates a new action.
The created action is stateless. See SimpleAction.stateful to create an action that has state.
name |
the name of the action |
parameter_type |
the type of parameter that will be passed to handlers for the activate signal, or null for no parameter |
a new SimpleAction |