[gnome-settings-daemon] power: Make "Screen when inactive" button work
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Make "Screen when inactive" button work
- Date: Mon, 13 May 2013 07:19:26 +0000 (UTC)
commit ce2cf0fc25faf3987348e4d13c50022e33ac244a
Author: Jean-Benoit MARTIN <jean-benoit martin eurogiciel fr>
Date: Fri Apr 26 11:08:04 2013 +0200
power: Make "Screen when inactive" button work
"Dim screen" only got enabled if the "blank screen" timeout got changed,
because of a missing check for the "idle-dim" settings key.
https://bugzilla.gnome.org/show_bug.cgi?id=697649
plugins/power/gsd-power-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index ebd60a6..fd4c904 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3139,7 +3139,8 @@ engine_settings_key_changed_cb (GSettings *settings,
return;
}
if (g_str_has_prefix (key, "sleep-inactive") ||
- g_str_equal (key, "idle-delay")) {
+ g_str_equal (key, "idle-delay") ||
+ g_str_equal (key, "idle-dim")) {
idle_configure (manager);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]