GApplication: fix a copy-paste error
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 Dec 2011 06:44:41 +0000 (01:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 Dec 2011 06:44:41 +0000 (01:44 -0500)
Activating an action must not turn into a change-state request.

gio/gapplication.c

index e192539..17398e0 100644 (file)
@@ -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,