[Xfce4-commits] [xfce/xfce4-power-manager] 05/07: Reformat common/xfpm-config.h

noreply at xfce.org noreply at xfce.org
Tue Aug 5 10:08:48 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 0bd005114ffc54e04bb30473e949d99796b71d2d
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Aug 4 23:49:59 2014 +0200

    Reformat common/xfpm-config.h
    
    Also rearrange the items to better reflect the layout in settings dialog.
    It's easier to find one's way around that way.
---
 common/xfpm-config.h |  108 ++++++++++++++++++++++----------------------------
 1 file changed, 47 insertions(+), 61 deletions(-)

diff --git a/common/xfpm-config.h b/common/xfpm-config.h
index 092fa29..83af97f 100644
--- a/common/xfpm-config.h
+++ b/common/xfpm-config.h
@@ -30,67 +30,53 @@
 
 G_BEGIN_DECLS
 
-#define 	XFPM_CHANNEL_CFG             	"xfce4-power-manager"
-
-/*
- * Backward compatibility with old version.
- */
-#define 	PROPERTIES_PREFIX		"/xfce4-power-manager/"
-
-#define     	CPU_FREQ_CONTROL             	"enable-cpu-freq-control"
-#define     	LOCK_SCREEN_ON_SLEEP         	"lock-screen-suspend-hibernate"
-
-#define         ON_BATTERY_BLANK                "blank-on-battery"
-#define         ON_AC_BLANK                     "blank-on-ac"
-
-#define 	DPMS_ENABLED_CFG             	"dpms-enabled" 
-#define 	ON_AC_DPMS_SLEEP 	     	"dpms-on-ac-sleep"
-#define 	ON_AC_DPMS_OFF	     	     	"dpms-on-ac-off"
-#define 	ON_BATT_DPMS_SLEEP 	     	"dpms-on-battery-sleep"
-#define 	ON_BATT_DPMS_OFF	     	"dpms-on-battery-off"
-#define     	DPMS_SLEEP_MODE		     	"dpms-sleep-mode"		
-
-#define 	GENERAL_NOTIFICATION_CFG     	"general-notification"
-
-#define     	ON_AC_INACTIVITY_TIMEOUT     	"inactivity-on-ac"
-#define     	ON_BATTERY_INACTIVITY_TIMEOUT 	"inactivity-on-battery"
-#define     	INACTIVITY_SLEEP_MODE_ON_AC   	"inactivity-sleep-mode-on-ac"
-#define     	INACTIVITY_SLEEP_MODE_ON_BATTERY   	"inactivity-sleep-mode-on-battery"
-
-#define     	BRIGHTNESS_ON_AC             	"brightness-on-ac"
-#define     	BRIGHTNESS_ON_BATTERY        	"brightness-on-battery"
-
-
-#define     	BRIGHTNESS_LEVEL_ON_AC          "brightness-level-on-ac"
-#define     	BRIGHTNESS_LEVEL_ON_BATTERY     "brightness-level-on-battery"
-
-#define     	BRIGHTNESS_SLIDER_MIN_LEVEL     "brightness-slider-min-level"
-
-#define     	CRITICAL_POWER_LEVEL        	"critical-power-level"
-#define     	SHOW_BRIGHTNESS_POPUP        	"show-brightness-popup"
-#define     	HANDLE_BRIGHTNESS_KEYS          "handle-brightness-keys"
-
-#define     	BRIGHTNESS_SWITCH        	"brightness-switch"
-#define     	BRIGHTNESS_SWITCH_SAVE  	"brightness-switch-restore-on-exit"
-
-#define 	SHOW_TRAY_ICON_CFG          	"show-tray-icon"
-#define 	CRITICAL_BATT_ACTION_CFG    	"critical-power-action"
-
-#define 	POWER_SWITCH_CFG            	"power-button-action"
-#define     	HIBERNATE_SWITCH_CFG        	"hibernate-button-action"
-#define 	SLEEP_SWITCH_CFG            	"sleep-button-action"
-
-#define 	LID_SWITCH_ON_AC_CFG        	"lid-action-on-ac"
-#define 	LID_SWITCH_ON_BATTERY_CFG   	"lid-action-on-battery"
-
-#define         NETWORK_MANAGER_SLEEP           "network-manager-sleep"
-
-#define     LOGIND_HANDLE_POWER_KEY     "logind-handle-power-key"
-#define     LOGIND_HANDLE_SUSPEND_KEY   "logind-handle-suspend-key"
-#define     LOGIND_HANDLE_HIBERNATE_KEY "logind-handle-hibernate-key"
-#define     LOGIND_HANDLE_LID_SWITCH    "logind-handle-lid-switch"
-
-#define         PRESENTATION_MODE               "presentation-mode"
+#define XFPM_CHANNEL_CFG                     "xfce4-power-manager"
+#define PROPERTIES_PREFIX                    "/xfce4-power-manager/"
+
+#define ON_AC_INACTIVITY_TIMEOUT             "inactivity-on-ac"
+#define ON_BATTERY_INACTIVITY_TIMEOUT        "inactivity-on-battery"
+#define INACTIVITY_SLEEP_MODE_ON_AC          "inactivity-sleep-mode-on-ac"
+#define INACTIVITY_SLEEP_MODE_ON_BATTERY     "inactivity-sleep-mode-on-battery"
+
+#define CRITICAL_POWER_LEVEL                 "critical-power-level"
+#define CRITICAL_BATT_ACTION_CFG             "critical-power-action"
+
+#define DPMS_ENABLED_CFG                     "dpms-enabled"
+#define ON_BATTERY_BLANK                     "blank-on-battery"
+#define ON_AC_BLANK                          "blank-on-ac"
+#define ON_AC_DPMS_SLEEP                     "dpms-on-ac-sleep"
+#define ON_AC_DPMS_OFF                       "dpms-on-ac-off"
+#define ON_BATT_DPMS_SLEEP                   "dpms-on-battery-sleep"
+#define ON_BATT_DPMS_OFF                     "dpms-on-battery-off"
+#define DPMS_SLEEP_MODE                      "dpms-sleep-mode"
+
+#define LOCK_SCREEN_ON_SLEEP                 "lock-screen-suspend-hibernate"
+#define GENERAL_NOTIFICATION_CFG             "general-notification"
+#define PRESENTATION_MODE                    "presentation-mode"
+#define NETWORK_MANAGER_SLEEP                "network-manager-sleep"
+#define SHOW_TRAY_ICON_CFG                   "show-tray-icon"
+#define CPU_FREQ_CONTROL                     "enable-cpu-freq-control"
+
+#define POWER_SWITCH_CFG                     "power-button-action"
+#define HIBERNATE_SWITCH_CFG                 "hibernate-button-action"
+#define SLEEP_SWITCH_CFG                     "sleep-button-action"
+#define LID_SWITCH_ON_AC_CFG                 "lid-action-on-ac"
+#define LID_SWITCH_ON_BATTERY_CFG            "lid-action-on-battery"
+
+#define LOGIND_HANDLE_POWER_KEY              "logind-handle-power-key"
+#define LOGIND_HANDLE_SUSPEND_KEY            "logind-handle-suspend-key"
+#define LOGIND_HANDLE_HIBERNATE_KEY          "logind-handle-hibernate-key"
+#define LOGIND_HANDLE_LID_SWITCH             "logind-handle-lid-switch"
+
+#define BRIGHTNESS_ON_AC                     "brightness-on-ac"
+#define BRIGHTNESS_ON_BATTERY                "brightness-on-battery"
+#define BRIGHTNESS_LEVEL_ON_AC               "brightness-level-on-ac"
+#define BRIGHTNESS_LEVEL_ON_BATTERY          "brightness-level-on-battery"
+#define BRIGHTNESS_SLIDER_MIN_LEVEL          "brightness-slider-min-level"
+#define BRIGHTNESS_SWITCH                    "brightness-switch"
+#define BRIGHTNESS_SWITCH_SAVE               "brightness-switch-restore-on-exit"
+#define HANDLE_BRIGHTNESS_KEYS               "handle-brightness-keys"
+#define SHOW_BRIGHTNESS_POPUP                "show-brightness-popup"
 
 G_END_DECLS
 

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


More information about the Xfce4-commits mailing list