[gnome-shell/wip/gtkmenutrackeritem: 4/5] remoteMenu: Add support for the submenu show requests
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gtkmenutrackeritem: 4/5] remoteMenu: Add support for the submenu show requests
- Date: Fri, 10 May 2013 18:36:14 +0000 (UTC)
commit 830e6518553b146ff54a5e0c04ccff92763c3bae
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 10 14:32:58 2013 -0400
remoteMenu: Add support for the submenu show requests
This uses the same "hack" implementation as GTK+ right now. Ideally,
we'd let clients defer submenu showing until their model was ready,
but this requires GtkMenuTrackerItem modifications, so do what GTK+
does for now.
js/ui/remoteMenu.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js
index 27f784f..4b4b1ec 100644
--- a/js/ui/remoteMenu.js
+++ b/js/ui/remoteMenu.js
@@ -47,6 +47,10 @@ const RemoteMenuSubmenuItemMapper = new Lang.Class({
this._trackerItem.get_submenu(),
this._trackerItem.get_submenu_namespace(),
this.menuItem.menu);
+
+ this.menuItem.connect('open-state-changed', Lang.bind(this, function(menu, open) {
+ this._trackerItem.request_submenu_shown(open);
+ });
},
destroy: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]