GActionEntry

This struct defines a single action. It is for use with g_action_map_add_action_entries().

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 g_action_map_add_action_entries() for an example.

Members

Variables

activate
void function(GSimpleAction* action, GVariant* parameter, void* userData) activate;
changeState
void function(GSimpleAction* action, GVariant* value, void* userData) changeState;
name
const(char)* name;

the name of the action

padding
size_t[3] padding;
Undocumented in source.
parameterType
const(char)* parameterType;

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)

state
const(char)* state;

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 string if they are necessary. Stateless actions should give %NULL here.

Meta