[gnome-screensaver] prefs: scale max lock and logout timeouts to proper units



commit f7ec7a8fdd05baeba78ff72c4b9c8006b08be147
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Tue Jan 17 15:11:23 2012 +0100

    prefs: scale max lock and logout timeouts to proper units
    
    gnome-screensaver tries to cap the maximum amount of idle
    time before screen lock/logout to 8 hours.  Commit a50f7dc9
    changed the internal representation of this timeout from
    minutes to seconds, but the cap wasn't appropriately scaled.
    
    This commit raises fixes the cap to again be 8 hours.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668039

 src/gs-prefs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 85b4dcb..faf82cc 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -130,8 +130,8 @@ _gs_prefs_set_lock_timeout (GSPrefs *prefs,
 {
         /* pick a reasonable large number for the
            upper bound */
-        if (value > 480)
-                value = 480;
+        if (value > 28800)
+                value = 28800;
 
         prefs->lock_timeout = value * 1000;
 }
@@ -219,8 +219,8 @@ _gs_prefs_set_logout_timeout (GSPrefs *prefs,
 {
         /* pick a reasonable large number for the
            upper bound */
-        if (value > 480)
-                value = 480;
+        if (value > 28800)
+                value = 28800;
 
         prefs->logout_timeout = value * 1000;
 }



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