StateMachine.createAction

Creates a new #GAction with the name of @name.

Setting the state of this action will toggle the state of the state machine. You should use g_variant_new_string() or similar to create the state.

class StateMachine
ActionIF
createAction
(
string name
)

Parameters

name
Type: string

the name of the action.

Return Value

Type: ActionIF

A newly created #GAction.

Meta