[gnome-shell/wip/gcampax/background: 3/7] ScreenShield: use different settings for the lock screen background
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gcampax/background: 3/7] ScreenShield: use different settings for the lock screen background
- Date: Mon, 4 Feb 2013 23:12:50 +0000 (UTC)
commit f6aa0ee5324b52d072e9a5669eec7debac289a6f
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Dec 17 20:17:04 2012 +0100
ScreenShield: use different settings for the lock screen background
The design calls for the ability to set a different background in the
lock screen, to differentiate it from the normal desktop.
https://bugzilla.gnome.org/show_bug.cgi?id=688210
js/ui/screenShield.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 91532b9..53f46b2 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -467,8 +467,10 @@ const ScreenShield = new Lang.Class({
name: 'lockScreenContents' });
this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true }));
+ this._settings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
+
let backgroundActor = new Meta.BackgroundActor({ screen: global.screen,
- settings: Main.background });
+ settings: this._settings });
backgroundActor.add_glsl_snippet(Meta.SnippetHook.TEXTURE_LOOKUP,
GLSL_BLUR_EFFECT_DECLARATIONS,
GLSL_BLUR_EFFECT_CODE,
@@ -532,8 +534,6 @@ const ScreenShield = new Lang.Class({
this._loginSession.connectSignal('Lock', Lang.bind(this, function() { this.lock(false); }));
this._loginSession.connectSignal('Unlock', Lang.bind(this, function() { this.deactivate(false); }));
- this._settings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
-
this._isModal = false;
this._hasLockScreen = false;
this._isGreeter = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]