Lightbox: have animation times passed as parameters to show() and hide()

This way it is possible to use the same lightbox with different
times.

https://bugzilla.gnome.org/show_bug.cgi?id=699112
This commit is contained in:
Giovanni Campagna
2013-05-12 17:39:44 +02:00
parent 32613ba544
commit 6b8339e9b4
2 changed files with 13 additions and 15 deletions

View File

@ -1730,8 +1730,6 @@ const MessageTray = new Lang.Class({
for (let i = 0; i < lightboxContainers.length; i++)
this._lightboxes.push(new Lightbox.Lightbox(lightboxContainers[i],
{ inhibitEvents: true,
fadeInTime: ANIMATION_TIME,
fadeOutTime: ANIMATION_TIME,
fadeFactor: 0.2
}));
@ -2339,7 +2337,7 @@ const MessageTray = new Lang.Class({
});
for (let i = 0; i < this._lightboxes.length; i++)
this._lightboxes[i].show();
this._lightboxes[i].show(ANIMATION_TIME);
return true;
},
@ -2395,7 +2393,7 @@ const MessageTray = new Lang.Class({
// This is a no-op in that case.
this._grabHelper.ungrab({ actor: this.actor });
for (let i = 0; i < this._lightboxes.length; i++)
this._lightboxes[i].hide();
this._lightboxes[i].hide(ANIMATION_TIME);
},
_hideDesktopClone: function() {