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
This commit is contained in:
parent
ea55c36a3a
commit
8fb2263471
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user