Package: gio

Function gio:simple-action-new-stateful

Lambda List

gio:simple-action-new-stateful (name vtype state)

Arguments

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

Return Value

The 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 parameter type as the initial state.

Notes

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

See also

2024-12-29