[gnome-shell/gnome-3-6] MessageTray: remove all tweens when tweening for state parameters



commit 5be206f0f475c66acc8a3f380b7fbdfcadf85e59
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Nov 25 23:51:44 2012 +0100

    MessageTray: remove all tweens when tweening for state parameters
    
    MessageTray._tween sets the state variable to the in-progress value,
    so it must be sure that at the end of the animation the value will
    be the corresponding final and nothing else will happen in between.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683986

 js/ui/messageTray.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 7079c19..e36f499 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2051,6 +2051,8 @@ const MessageTray = new Lang.Class({
         params.onCompleteScope = this;
         params.onCompleteParams = [statevar, value, onComplete, onCompleteScope, onCompleteParams];
 
+        // Remove other tweens that could mess with the state machine
+        Tweener.removeTweens(actor);
         Tweener.addTween(actor, params);
 
         let valuing = (value == State.SHOWN) ? State.SHOWING : State.HIDING;


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