[gnome-shell] messageTray: Use a regular tween when expanding the notification



commit 4ba8518462547ceb056183ab486e115769929718
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Nov 4 14:25:29 2013 -0500

    messageTray: Use a regular tween when expanding the notification
    
    When a notification becomes expanded, it's either already shown,
    or in the process of being shown. Don't set the state to SHOWING
    again, which confuses our state machine.

 js/ui/messageTray.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 1959944..cd05973 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2755,12 +2755,12 @@ const MessageTray = new Lang.Class({
         } else if (this._notification.y != expandedY) {
             // Tween also opacity here, to override a possible tween that's
             // currently hiding the notification.
-            this._tween(this._notificationWidget, '_notificationState', State.SHOWN,
-                        { y: expandedY,
-                          opacity: 255,
-                          time: ANIMATION_TIME,
-                          transition: 'easeOutQuad'
-                        });
+            Tweener.addTween(this._notificationWidget,
+                             { y: expandedY,
+                               opacity: 255,
+                               time: ANIMATION_TIME,
+                               transition: 'easeOutQuad'
+                             });
         }
     },
 


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