From e6ef11575bcc041e32b4b55965f29c0f643c6615 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 19 Apr 2013 11:43:53 -0400 Subject: [PATCH] messageTray: Move adding the menu actor to MessageTrayContextMenu This matches BackgroundMenu and EntryMenu. https://bugzilla.gnome.org/show_bug.cgi?id=699272 --- js/ui/messageTray.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 4214f4790..534bfd805 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1544,6 +1544,9 @@ const MessageTrayContextMenu = new Lang.Class({ this.parent(this._dummy, 0, St.Side.BOTTOM); this._tray = tray; + this.actor.hide(); + Main.layoutManager.addChrome(this.actor); + this._clearItem = this.addAction(_("Clear Messages"), function() { let toDestroy = []; let sources = tray.getSources(); @@ -1784,10 +1787,6 @@ const MessageTray = new Lang.Class({ } return false; })); - - this._contextMenu.actor.hide(); - Main.layoutManager.addChrome(this._contextMenu.actor); - }, _openContextMenu: function () {