[gnome-power-manager] Add two keys about UPS policy that were removed accidently
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Add two keys about UPS policy that were removed accidently
- Date: Sun, 19 Jul 2009 12:31:24 +0000 (UTC)
commit 9df98fc8192604c74bf29f1c8bd10845a8513499
Author: Richard Hughes <richard hughsie com>
Date: Sun Jul 19 11:21:08 2009 +0100
Add two keys about UPS policy that were removed accidently
data/gnome-power-manager.schemas.in | 24 +++++++++++++++++++++++-
src/gpm-common.h | 2 ++
2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/data/gnome-power-manager.schemas.in b/data/gnome-power-manager.schemas.in
index 8444b7b..f464f40 100644
--- a/data/gnome-power-manager.schemas.in
+++ b/data/gnome-power-manager.schemas.in
@@ -706,6 +706,17 @@
</schema>
<schema>
+ <key>/schemas/apps/gnome-power-manager/timeout/sleep_computer_ups</key>
+ <applyto>/apps/gnome-power-manager/timeout/sleep_computer_ups</applyto>
+ <type>int</type>
+ <default>0</default>
+ <locale name="C">
+ <short>Sleep timeout computer when on UPS</short>
+ <long>The amount of time in seconds the computer on UPS power needs to be inactive before it goes to sleep.</long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/gnome-power-manager/timeout/sleep_display_ac</key>
<applyto>/apps/gnome-power-manager/timeout/sleep_display_ac</applyto>
<type>int</type>
@@ -720,7 +731,7 @@
<key>/schemas/apps/gnome-power-manager/timeout/sleep_display_battery</key>
<applyto>/apps/gnome-power-manager/timeout/sleep_display_battery</applyto>
<type>int</type>
- <default>300</default>
+ <default>600</default>
<locale name="C">
<short>Sleep timeout display when on battery</short>
<long>The amount of time in seconds the computer on battery power needs to be inactive before the display goes to sleep.</long>
@@ -728,6 +739,17 @@
</schema>
<schema>
+ <key>/schemas/apps/gnome-power-manager/timeout/sleep_display_ups</key>
+ <applyto>/apps/gnome-power-manager/timeout/sleep_display_ups</applyto>
+ <type>int</type>
+ <default>600</default>
+ <locale name="C">
+ <short>Sleep timeout display when on UPS</short>
+ <long>The amount of time in seconds the computer on UPS power needs to be inactive before the display goes to sleep.</long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/gnome-power-manager/ui/enable_sound</key>
<applyto>/apps/gnome-power-manager/ui/enable_sound</applyto>
<owner>gnome-power-manager</owner>
diff --git a/src/gpm-common.h b/src/gpm-common.h
index 99edcb1..0c5567e 100644
--- a/src/gpm-common.h
+++ b/src/gpm-common.h
@@ -137,8 +137,10 @@ G_BEGIN_DECLS
/* timeout */
#define GPM_CONF_TIMEOUT_SLEEP_COMPUTER_AC GPM_CONF_DIR "/timeout/sleep_computer_ac"
#define GPM_CONF_TIMEOUT_SLEEP_COMPUTER_BATT GPM_CONF_DIR "/timeout/sleep_computer_battery"
+#define GPM_CONF_TIMEOUT_SLEEP_COMPUTER_UPS GPM_CONF_DIR "/timeout/sleep_computer_ups"
#define GPM_CONF_TIMEOUT_SLEEP_DISPLAY_AC GPM_CONF_DIR "/timeout/sleep_display_ac"
#define GPM_CONF_TIMEOUT_SLEEP_DISPLAY_BATT GPM_CONF_DIR "/timeout/sleep_display_battery"
+#define GPM_CONF_TIMEOUT_SLEEP_DISPLAY_UPS GPM_CONF_DIR "/timeout/sleep_display_ups"
/* ui */
#define GPM_CONF_UI_ICON_POLICY GPM_CONF_DIR "/ui/icon_policy"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]