[gnome-shell/wip/message-tray-menu: 3/20] messageTray: Move adding the menu actor to MessageTrayContextMenu
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray-menu: 3/20] messageTray: Move adding the menu actor to MessageTrayContextMenu
- Date: Wed, 24 Apr 2013 20:13:18 +0000 (UTC)
commit 48a4d1e5edf96f36f014d4c18d0c9983ab178b6f
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.
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 c9e64e7..2099c90 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();
@@ -1738,10 +1741,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]