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. const gchar *name; the name of the action activate () the callback to connect to the "activate" signal of the action const gchar *parameter_type; 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) const gchar *state; the initial state for this action, given in GVariant text format. The state is parsed with no extra type information, so type tags must be added to the string if they are necessary. change_state () the callback to connect to the "change-state" signal of the action

Members

Variables

activate
void function(GSimpleAction* action, GVariant* parameter, void* userData) activate;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
changeState
void function(GSimpleAction* action, GVariant* value, void* userData) changeState;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
name
char* name;
Undocumented in source.
parameterType
char* parameterType;
Undocumented in source.
state
char* state;
Undocumented in source.

Meta