messageTray: Move adding the menu actor to MessageTrayContextMenu

This matches BackgroundMenu and EntryMenu.

https://bugzilla.gnome.org/show_bug.cgi?id=699272
This commit is contained in:
Jasper St. Pierre 2013-04-19 11:43:53 -04:00
parent 7563e04743
commit e6ef11575b

View File

@ -1544,6 +1544,9 @@ const MessageTrayContextMenu = new Lang.Class({
this.parent(this._dummy, 0, St.Side.BOTTOM); this.parent(this._dummy, 0, St.Side.BOTTOM);
this._tray = tray; this._tray = tray;
this.actor.hide();
Main.layoutManager.addChrome(this.actor);
this._clearItem = this.addAction(_("Clear Messages"), function() { this._clearItem = this.addAction(_("Clear Messages"), function() {
let toDestroy = []; let toDestroy = [];
let sources = tray.getSources(); let sources = tray.getSources();
@ -1784,10 +1787,6 @@ const MessageTray = new Lang.Class({
} }
return false; return false;
})); }));
this._contextMenu.actor.hide();
Main.layoutManager.addChrome(this._contextMenu.actor);
}, },
_openContextMenu: function () { _openContextMenu: function () {