Package: gio

Function g-simple-action-new-stateful

Lambda List

g-simple-action-new-stateful (name vtype state)

Arguments

name -- a string with the name of the action
vtype -- the g-variant-type type or a type string of the parameter to the activate function
state -- the initial g-variant state of the action

Return Value

A new g-simple-action object.

Details

Creates a new stateful action. The state argument is the initial state of the action. All future state values must have the same g-variant-type type as the initial state.

Note

A type string for the vtype argument is converted to the g-variant-type type with the g-variant-type-new function.
 

See also

*2021-10-31