[gnome-shell] switcherPopup: Hide the top level actor on _init



commit f2cbc3192c9f3524219aef1ba5e9ea7d1f0a5045
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Jan 17 19:42:41 2013 +0100

    switcherPopup: Hide the top level actor on _init
    
    destroy() checks if we are visible to decide whether to destroy the
    actor immediately or after a fade out animation. Since actors are
    visible by default it would always end up destroying only after the
    animation time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691963

 js/ui/switcherPopup.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js
index c3a4ce0..bfe172b 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -46,7 +46,8 @@ const SwitcherPopup = new Lang.Class({
         this._selectedIndex = 0;
 
         this.actor = new Shell.GenericContainer({ style_class: 'switcher-popup',
-                                                  reactive: true });
+                                                  reactive: true,
+                                                  visible: false });
         this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
         this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
         this.actor.connect('allocate', Lang.bind(this, this._allocate));



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