From ebbd295ebe6fd1445faaff67b47e8e781ab8ba1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 29 May 2012 21:07:54 +0200 Subject: [PATCH] panel: Refuse to add (legacy) status icons not part of the session mode If a session mode does not use certain status items, we don't want their fallback implementation to show up either, so filter them out. https://bugzilla.gnome.org/show_bug.cgi?id=677058 --- js/ui/panel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/panel.js b/js/ui/panel.js index 121dab2a9..06d430056 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -1144,6 +1144,9 @@ const Panel = new Lang.Class({ return; } + if (Main.sessionMode.statusArea.order.indexOf(role) == -1) + return; + icon.height = PANEL_ICON_SIZE; let buttonBox = new PanelMenu.ButtonBox(); let box = buttonBox.actor;