[Xfce4-commits] <xfce4-session:master> Fix return value of CanSuspend and CanHibernate.

Nick Schermer noreply at xfce.org
Fri Mar 30 21:30:01 CEST 2012


Updating branch refs/heads/master
         to 1b21ed4a608109b16aad100e9759a96815d4e162 (commit)
       from b46f75c3dac2bfc8c6bdcd858ba450aa011f9f13 (commit)

commit 1b21ed4a608109b16aad100e9759a96815d4e162
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Mar 30 21:29:16 2012 +0200

    Fix return value of CanSuspend and CanHibernate.

 xfce4-session/xfsm-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c
index 2e244d9..d457eca 100644
--- a/xfce4-session/xfsm-manager.c
+++ b/xfce4-session/xfsm-manager.c
@@ -2111,7 +2111,7 @@ xfsm_manager_dbus_can_suspend (XfsmManager *manager,
                                       can_suspend, &auth_suspend, error);
 
   if (!auth_suspend)
-    can_suspend = FALSE;
+    *can_suspend = FALSE;
 
   return retval;
 }
@@ -2138,7 +2138,7 @@ xfsm_manager_dbus_can_hibernate (XfsmManager *manager,
                                         can_hibernate, &auth_hibernate, error);
 
   if (!auth_hibernate)
-    can_hibernate = FALSE;
+    *can_hibernate = FALSE;
 
   return retval;
 }


More information about the Xfce4-commits mailing list