[gnome-shell] messageTray: emit a signal when we're showing or hiding



commit 8fb2263471df1e5542e2388d31e55e732ae80bf8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Feb 28 21:16:54 2013 -0500

    messageTray: emit a signal when we're showing or hiding
    
    This will be useful in a future commit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687787

 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 3699ec2..14c55db 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2348,6 +2348,7 @@ const MessageTray = new Lang.Class({
             return false;
         }
 
+        this.emit('showing');
         this._tween(this.actor, '_trayState', State.SHOWN,
                     { y: -this.actor.height,
                       time: ANIMATION_TIME,
@@ -2398,6 +2399,7 @@ const MessageTray = new Lang.Class({
         // is distracting, so hide it immediately in case it was visible.
         this._summaryBoxPointer.actor.hide();
 
+        this.emit('hiding');
         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]