[gnome-shell] Really use the right getter



commit 9281129f07c6577ed85d09ad02e40368d778bb62
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 5 14:21:30 2013 -0500

    Really use the right getter
    
    Doh, it is actually a uint, not an int.

 js/ui/screenShield.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 7c6fcd5..699fb96 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -641,7 +641,7 @@ const ScreenShield = new Lang.Class({
                 let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000;
                 let shouldLock = lightboxWasShown &&
                     this._settings.get_boolean(LOCK_ENABLED_KEY) &&
-                    (elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY));
+                    (elapsedTime >= this._settings.get_uint(LOCK_DELAY_KEY));
                 if (shouldLock || this._isLocked) {
                     this.lock(false);
                 } else if (this._isActive) {



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