gio.action_entry
Module for [ActionEntry] class
class ActionEntry
Types 1
classActionEntry
This struct defines a single action. It is for use with [gio.action_map.ActionMap.addActionEntries].
The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as null. All values after @name are optional. Additional optional fields may be added in the future.
See [gio.action_map.ActionMap.addActionEntries] for an example.
Fields
GActionEntry _cInstanceMethods
void * _cPtr()ActivateFuncType activate() @propertyGet `activate` field. Returns: the callback to connect to the "activate" signal of the action. Since GLib 2.40, this can be null for stateful actions, in which case the default handler is used. F...string parameterType() @propertyGet `parameterType` field. Returns: the type of the parameter that must be passed to the activate function for this action, given as a single GVariant type string (or null for no parameter)void parameterType(string propval) @propertySet `parameterType` field. Params: propval = the type of the parameter that must be passed to the activate function for this action, given as a single GVariant type string (or null for no parameter)string state() @propertyGet `state` field. Returns: the initial state for this action, given in [GVariant text format][gvariant-text]. The state is parsed with no extra type information, so type tags must be added to the...void state(string propval) @propertySet `state` field. Params: propval = the initial state for this action, given in [GVariant text format][gvariant-text]. The state is parsed with no extra type information, so type tags must be add...ChangeStateFuncType changeState() @propertyGet `changeState` field. Returns: the callback to connect to the "change-state" signal of the action. All stateful actions should provide a handler here; stateless actions should not.