[gnome-shell/wip/gtkmenutrackeritem: 3/5] remoteMenu: Add support for submenu action namespaces
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gtkmenutrackeritem: 3/5] remoteMenu: Add support for submenu action namespaces
- Date: Fri, 10 May 2013 18:36:09 +0000 (UTC)
commit ec2bd722082f261a8927640a2a541b94aaf2acfa
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 10 13:37:23 2013 -0400
remoteMenu: Add support for submenu action namespaces
js/ui/remoteMenu.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js
index 3ebebc5..27f784f 100644
--- a/js/ui/remoteMenu.js
+++ b/js/ui/remoteMenu.js
@@ -45,6 +45,7 @@ const RemoteMenuSubmenuItemMapper = new Lang.Class({
this._tracker = new RemoteMenuTracker(this._trackerItem.get_observable(),
this._trackerItem.get_submenu(),
+ this._trackerItem.get_submenu_namespace(),
this.menuItem.menu);
},
@@ -121,11 +122,11 @@ const RemoteMenuItemMapper = new Lang.Class({
const RemoteMenuTracker = new Lang.Class({
Name: 'RemoteMenuTracker',
- _init: function(actionGroup, model, menu) {
+ _init: function(actionGroup, model, actionNamespace, menu) {
this._menu = menu;
this._tracker = Shell.MenuTracker.new(actionGroup,
model,
- null, /* action namespace */
+ actionNamespace,
Lang.bind(this, this._insertItem),
Lang.bind(this, this._removeItem));
},
@@ -166,7 +167,7 @@ const RemoteMenu = new Lang.Class({
this.parent(sourceActor, 0.0, St.Side.TOP);
this._model = model;
- this._tracker = new RemoteMenuTracker(actionGroup, model, this);
+ this._tracker = new RemoteMenuTracker(actionGroup, model, null, this);
},
destroy: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]