messageTray: Animate the context menu

Use animation for opening and closing the menu.
This commit is contained in:
Adel Gadllah 2013-02-18 21:56:21 +01:00
parent 01ac5aeb0d
commit b292384380

View File

@ -1766,11 +1766,11 @@ const MessageTray = new Lang.Class({
this._grabHelper.grab({ actor: this._contextMenu.actor, this._grabHelper.grab({ actor: this._contextMenu.actor,
grabFocus: true, grabFocus: true,
onUngrab: Lang.bind(this, function () { onUngrab: Lang.bind(this, function () {
this._contextMenu.close(); this._contextMenu.close(BoxPointer.PopupAnimation.FULL);
this._unlock(); this._unlock();
}) })
}); });
this._contextMenu.open(); this._contextMenu.open(BoxPointer.PopupAnimation.FULL);
}, },
close: function() { close: function() {