[gnome-settings-daemon] power: Correct idle-delay type
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Correct idle-delay type
- Date: Thu, 17 Jan 2013 11:46:43 +0000 (UTC)
commit f8c42713d40ff20157ff43dae02a459f7419a9dd
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 17 11:46:39 2013 +0100
power: Correct idle-delay type
It's a uint, not an int.
plugins/power/gsd-power-manager.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 103f78e..ad60538 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2596,8 +2596,8 @@ idle_configure (GsdPowerManager *manager)
if (manager->priv->screensaver_active) {
timeout_blank = SCREENSAVER_TIMEOUT_BLANK;
} else {
- timeout_blank = g_settings_get_int (manager->priv->settings_session,
- "idle-delay");
+ timeout_blank = g_settings_get_uint (manager->priv->settings_session,
+ "idle-delay");
if (timeout_blank != 0)
timeout_blank += SCREENSAVER_FADE_TIME;
}
@@ -2650,8 +2650,8 @@ idle_configure (GsdPowerManager *manager)
timeout_dim = SCREENSAVER_TIMEOUT_BLANK;
} else {
if (g_settings_get_boolean (manager->priv->settings, "idle-dim")) {
- timeout_dim = g_settings_get_int (manager->priv->settings_session,
- "idle-delay");
+ timeout_dim = g_settings_get_uint (manager->priv->settings_session,
+ "idle-delay");
if (timeout_dim == 0) {
timeout_dim = IDLE_DIM_BLANK_DISABLED_MIN;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]