[gnome-shell] panel: Defer adding the user status menu to the manager
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Defer adding the user status menu to the manager
- Date: Tue, 22 Feb 2011 23:17:37 +0000 (UTC)
commit 867c9a19ae84db5bbd96b4a85ca62f4da16138c9
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 22 17:40:32 2011 +0100
panel: Defer adding the user status menu to the manager
PopupMenuManager relies on menus being added in the order of the
menu buttons they are attached to, so defer adding the user status
menu until the status icon menus have been added to make the manager
happy.
js/ui/panel.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 1c23ae8..4cedb44 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -874,7 +874,6 @@ Panel.prototype = {
this._statusmenu = new StatusMenu.StatusMenuButton();
this._statusmenu.actor.name = 'panelStatus';
- this._menus.addMenu(this._statusmenu.menu);
this._rightBox.add(this._statusmenu.actor);
// Synchronize the buttons pseudo classes with its corner
@@ -951,6 +950,10 @@ Panel.prototype = {
this._statusBox.add(indicator.actor);
this._menus.addMenu(indicator.menu);
}
+
+ // PopupMenuManager depends on menus being added in order for
+ // keyboard navigation
+ this._menus.addMenu(this._statusmenu.menu);
},
startupAnimation: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]