Commit e426c2cf authored by Christian Hergert's avatar Christian Hergert
Browse files

actions: set initial out parameter state

parent eef00517
......@@ -168,6 +168,11 @@ _##prefix##_query_action (GActionGroup *group,
GVariant **state_hint, \
GVariant **state) \
{ \
if (enabled) *enabled = FALSE; \
if (parameter_type) *parameter_type = NULL ; \
if (state_type) *state_type = NULL ; \
if (state_hint) *state_hint = NULL ; \
if (state) *state = NULL ; \
for (guint i = 0; i < G_N_ELEMENTS(prefix##_actions); i++) \
{ \
if (g_strcmp0 (name, prefix##_actions[i].name) == 0) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment