Commit 4f5732f7 authored by Matthias Clasen's avatar Matthias Clasen

GApplication: fix a copy-paste error

Activating an action must not turn into a change-state request.
parent dec7ed8a
......@@ -1631,7 +1631,8 @@ g_application_change_action_state (GActionGroup *action_group,
g_return_if_fail (application->priv->is_registered);
if (application->priv->remote_actions)
return g_action_group_change_action_state (application->priv->remote_actions, action_name, value);
return g_action_group_change_action_state (application->priv->remote_actions,
action_name, value);
else
g_action_group_change_action_state (application->priv->actions,
......@@ -1650,7 +1651,8 @@ g_application_activate_action (GActionGroup *action_group,
g_return_if_fail (application->priv->is_registered);
if (application->priv->remote_actions)
return g_action_group_change_action_state (application->priv->remote_actions, action_name, parameter);
return g_action_group_activate_action (application->priv->remote_actions,
action_name, parameter);
else
g_action_group_activate_action (application->priv->actions,
......
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