[Xfce4-commits] [xfce/xfce4-power-manager] 01/02: xfconf: Use constants instead of hard-coded strings

noreply at xfce.org noreply at xfce.org
Sat Aug 2 20:19:31 CEST 2014


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

hjudt pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 3d25fe1a07b65e8ae0d20ad2d059789be4e97734
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Aug 1 11:04:11 2014 +0200

    xfconf: Use constants instead of hard-coded strings
---
 src/xfpm-xfconf.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xfpm-xfconf.c b/src/xfpm-xfconf.c
index acafc35..0508bed 100644
--- a/src/xfpm-xfconf.c
+++ b/src/xfpm-xfconf.c
@@ -189,9 +189,9 @@ xfpm_xfconf_property_changed_cb (XfconfChannel *channel, gchar *property,
 	return;
 
     /* We handle presentation mode and blank-times in xfpm-power directly */
-    if ( g_strcmp0 (property, "/xfce4-power-manager/presentation-mode") == 0 ||
-         g_strcmp0 (property, "/xfce4-power-manager/blank-on-ac") == 0 ||
-         g_strcmp0 (property, "/xfce4-power-manager/blank-on-battery") == 0)
+    if ( g_strcmp0 (property, PROPERTIES_PREFIX PRESENTATION_MODE) == 0 ||
+         g_strcmp0 (property, PROPERTIES_PREFIX ON_AC_BLANK) == 0 ||
+         g_strcmp0 (property, PROPERTIES_PREFIX ON_BATTERY_BLANK) == 0)
         return;
 
     /* We handle brightness switch in xfpm-backlight directly */

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


More information about the Xfce4-commits mailing list