Use the right getter

org.gnome.desktop.screensaver lock-delay is an integer, not
a boolean, so don't use get_bool() on it.

https://bugzilla.gnome.org/show_bug.cgi?id=691170
This commit is contained in:
Matthias Clasen 2013-01-04 22:00:06 -05:00
parent d87db04e55
commit 0e9ddd3b99

View File

@ -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_boolean(LOCK_DELAY_KEY));
(elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY));
if (shouldLock || this._isLocked) {
this.lock(false);
} else if (this._isActive) {