[glib] GApplication: fix a copy-paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GApplication: fix a copy-paste error
- Date: Mon, 12 Dec 2011 06:45:42 +0000 (UTC)
commit 4f5732f721d11545bfd2ad3a971a44b76bfa7273
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 12 01:44:41 2011 -0500
GApplication: fix a copy-paste error
Activating an action must not turn into a change-state request.
gio/gapplication.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index e192539..17398e0 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]