[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: function check_for_consolekit2 is not used if !UP_CHECK_VERSION(0, 99, 0)

noreply at xfce.org noreply at xfce.org
Sun Mar 22 11:11:47 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch xfce-4.12
in repository xfce/xfce4-power-manager.

commit 883782b8014564e367ae83ff8718b22e40193f5b
Author: Matt Thirtytwo <matt.59491 at gmail.com>
Date:   Sat Mar 7 23:13:05 2015 +0100

    function check_for_consolekit2 is not used if !UP_CHECK_VERSION(0, 99, 0)
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfpm-power.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 967aab4..938e070 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -169,6 +169,7 @@ static guint signals [LAST_SIGNAL] = { 0 };
 G_DEFINE_TYPE (XfpmPower, xfpm_power, G_TYPE_OBJECT)
 
 
+#if UP_CHECK_VERSION(0, 99, 0)
 /* This checks if consolekit returns TRUE for either suspend or
  * hibernate showing support. This means that ConsoleKit2 is running
  * (and the system is capable of those actions).
@@ -201,6 +202,7 @@ check_for_consolekit2 (XfpmPower *power)
 
     return FALSE;
 }
+#endif
 
 #ifdef ENABLE_POLKIT
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list