[gnome-shell/wip/message-tray-menu: 70/109] messageTray: Move adding the menu actor to MessageTrayContextMenu



commit 38c317c514a6456cdb532fed9ad8994cceb64c62
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 19 11:43:53 2013 -0400

    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 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index c1c3a83..ade8b4b 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1498,6 +1498,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();
@@ -1737,10 +1740,6 @@ const MessageTray = new Lang.Class({
             }
             return false;
         }));
-
-        this._contextMenu.actor.hide();
-        Main.layoutManager.addChrome(this._contextMenu.actor);
-
     },
 
     _openContextMenu: function () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]