From 8fb2263471df1e5542e2388d31e55e732ae80bf8 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 28 Feb 2013 21:16:54 -0500 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 3699ec273..14c55db63 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,