[gnome-shell/gnome-3-6] Use the right getter
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-6] Use the right getter
- Date: Thu, 17 Jan 2013 17:08:54 +0000 (UTC)
commit d339d2db09052b42960250ab713cc4f885f1155f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 4 22:00:06 2013 -0500
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
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 94fc2b5..d2754df 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -587,7 +587,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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]