[gnome-shell/wip/message-tray-menu: 72/109] messageTray: Rename the context menu to the tray menu
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray-menu: 72/109] messageTray: Rename the context menu to the tray menu
- Date: Thu, 9 May 2013 15:42:24 +0000 (UTC)
commit 0b75cd16e800453e2f3ec878b9efcd5934f0fa9b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Apr 19 12:00:44 2013 -0400
messageTray: Rename the context menu to the tray menu
https://bugzilla.gnome.org/show_bug.cgi?id=699272
js/ui/messageTray.js | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 3af6f64..07e0a22 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1487,8 +1487,8 @@ const SummaryItem = new Lang.Class({
});
Signals.addSignalMethods(SummaryItem.prototype);
-const MessageTrayContextMenu = new Lang.Class({
- Name: 'MessageTrayContextMenu',
+const MessageTrayMenu = new Lang.Class({
+ Name: 'MessageTrayMenu',
Extends: PopupMenu.PopupMenu,
_init: function(tray) {
@@ -1718,9 +1718,9 @@ const MessageTray = new Lang.Class({
this.actor.add_actor(this._noMessages);
this._updateNoMessagesLabel();
- this._contextMenu = new MessageTrayContextMenu(this);
- this._contextMenuManager = new PopupMenu.PopupMenuManager({ grabHelper: this._grabHelper });
- this._contextMenuManager.addMenu(this._contextMenu);
+ this._trayMenu = new MessageTrayMenu(this);
+ this._trayMenuManager = new PopupMenu.PopupMenuManager({ grabHelper: this._grabHelper });
+ this._trayMenuManager.addMenu(this._trayMenu);
let clickAction = new Clutter.ClickAction();
this.actor.add_action(clickAction);
@@ -1728,7 +1728,7 @@ const MessageTray = new Lang.Class({
clickAction.connect('clicked', Lang.bind(this, function(action) {
let button = action.get_button();
if (button == 3)
- this._openContextMenu();
+ this._openTrayMenu();
}));
clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
@@ -1736,16 +1736,16 @@ const MessageTray = new Lang.Class({
case Clutter.LongPressState.QUERY:
return true;
case Clutter.LongPressState.ACTIVATE:
- this._openContextMenu();
+ this._openTrayMenu();
}
return false;
}));
},
- _openContextMenu: function () {
+ _openTrayMenu: function () {
let [x, y, mask] = global.get_pointer();
- this._contextMenu.setPosition(Math.round(x), Math.round(y));
- this._contextMenu.open(BoxPointer.PopupAnimation.FULL);
+ this._trayMenu.setPosition(Math.round(x), Math.round(y));
+ this._trayMenu.open(BoxPointer.PopupAnimation.FULL);
},
close: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]