SimpleAction
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.28" ) ]
public SimpleAction (string name, VariantType? parameter_type)
[ 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.
Parameters:
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 |
Returns:
a new SimpleAction |