[gnome-shell] panel: Refuse to add (legacy) status icons not part of the session mode



commit ebbd295ebe6fd1445faaff67b47e8e781ab8ba1e
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue May 29 21:07:54 2012 +0200

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 121dab2..06d4300 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]