[gnome-shell/wip/screen-shield-rebase1: 3/6] lightbox: make sure this.shown set to false when start showing



commit 9dfd805be234ff369a13745e0e8e8fd89def2058
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date:   Thu Mar 1 01:07:06 2012 -0500

    lightbox: make sure this.shown set to false when start showing

 js/ui/lightbox.js     |    1 +
 js/ui/screenShield.js |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js
index c6261dd..d6b0f5d 100644
--- a/js/ui/lightbox.js
+++ b/js/ui/lightbox.js
@@ -102,6 +102,7 @@ const Lightbox = new Lang.Class({
 
     show: function() {
         if (this._fadeInTime) {
+            this.shown = false;
             this.actor.opacity = 0;
             Tweener.addTween(this.actor,
                              { opacity: 255 * this._fadeFactor,
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 1266550..be3315e 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -61,6 +61,7 @@ const ScreenShield = new Lang.Class({
             this._lightbox.show();
         } else {
             let lightboxWasShown = this._lightbox.shown;
+            log("this._lightbox.shown " + this._lightbox.shown);
             this._lightbox.hide();
             if (lightboxWasShown && this._settings.get_boolean(LOCK_ENABLED_KEY)) {
                 this._background.show();



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