[gnome-shell] appMenu: Disable app menu during startup animations



commit f906cfe5f68dbaa6f8b49e907c73b77117a1e1fd
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 10 22:14:11 2012 +0200

    appMenu: Disable app menu during startup animations
    
    When activating the app menu while displaying a startup notification
    animation, the application shown in the menu does not match the
    application providing the menu. To avoid this case, make the menu
    button unreactive while playing the animation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672322

 js/ui/panel.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index a06cc92..c969381 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -346,6 +346,7 @@ const AppMenuButton = new Lang.Class({
             return;
 
         this._stop = true;
+        this.actor.reactive = true;
         Tweener.addTween(this._spinner.actor,
                          { opacity: 0,
                            time: SPINNER_ANIMATION_TIME,
@@ -360,6 +361,7 @@ const AppMenuButton = new Lang.Class({
 
     startAnimation: function() {
         this._stop = false;
+        this.actor.reactive = false;
         this._spinner.actor.show();
     },
 



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