[gnome-settings-daemon] power: Make blank when in screen lock a constant



commit 02a2ee60586ef409aa3b3b06f023a1866d264806
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 16 19:47:21 2013 +0100

    power: Make blank when in screen lock a constant

 plugins/power/gsd-power-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 34c003d..9dffd84 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -84,6 +84,8 @@
 /* Keep this in sync with gnome-shell */
 #define SCREENSAVER_FADE_TIME                           10 /* seconds */
 
+#define SCREENSAVER_TIMEOUT_BLANK                       30 /* seconds */
+
 static const gchar introspection_xml[] =
 "<node>"
   "<interface name='org.gnome.SettingsDaemon.Power'>"
@@ -2695,7 +2697,7 @@ idle_configure (GsdPowerManager *manager)
          * but only if we actually want to blank. */
         on_battery = up_client_get_on_battery (manager->priv->up_client);
         if (manager->priv->screensaver_active) {
-                timeout_blank = 30;
+                timeout_blank = SCREENSAVER_TIMEOUT_BLANK;
         } else {
                 timeout_blank = g_settings_get_int (manager->priv->settings_session,
                                                     "idle-delay");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]