[gnome-shell/gnome-3-6] messageTray: Hide summary notification immediately when closing the tray



commit 01b2f596a2ac3e27e347e46fd3103210c543b5be
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu Oct 25 22:29:04 2012 +0200

    messageTray: Hide summary notification immediately when closing the tray
    
    When the summary notification is open when the tray is closed, we end
    up with two concurrent animations: the notification fading out, and the
    tray moving away from underneath it. Sliding out the tray should be the
    primary transition here, so hide the notification immediately to not
    draw the user's attention away from it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686888

 js/ui/messageTray.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 86bd6ed..c213e92 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2122,6 +2122,10 @@ const MessageTray = new Lang.Class({
     },
 
     _hideTray: function() {
+        // Having the summary item animate out while sliding down the tray
+        // is distracting, so hide it immediately in case it was visible.
+        this._summaryBoxPointer.actor.hide();
+
         this._tween(this.actor, '_trayState', State.HIDDEN,
                     { y: 0,
                       time: ANIMATION_TIME,



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