After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677058 - Refuse to add (legacy) status icons not part of the session mode
Refuse to add (legacy) status icons not part of the session mode
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-29 19:51 UTC by Florian Müllner
Modified: 2012-05-29 20:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
panel: Refuse to add (legacy) status icons not part of the session mode (1.01 KB, patch)
2012-05-29 19:51 UTC, Florian Müllner
committed Details | Review
sessionMode: Add 'input-method' to status icons in user mode (1.11 KB, patch)
2012-05-29 19:51 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2012-05-29 19:51:16 UTC
Currently we add all legacy status icons that do not provide a shell implementation. As the session mode might deliberately not include certain icons, we don't want their fallback versions to show up either, so filter them out explicitly.
(I'm aware that there's a workaround for the issue by including shell implementations for *all* icons, even those not in the order array, but that's completely unintuitive)
Comment 1 Florian Müllner 2012-05-29 19:51:19 UTC
Created attachment 215215 [details] [review]
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.
Comment 2 Florian Müllner 2012-05-29 19:51:23 UTC
Created attachment 215216 [details] [review]
sessionMode: Add 'input-method' to status icons in user mode

We now drop all status icons that are not explicitly enabled, which
breaks the ibus icon. Add it to the list of allowed icons until we
merge it with the keyboard one.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-05-29 20:00:55 UTC
Review of attachment 215215 [details] [review]:

::: js/ui/panel.js
@@ +1158,3 @@
 
+        if (Main.sessionMode.statusArea.order.indexOf(role) == -1) {
+            // This icon is not used in the session mode, ignore it

Comment isn't really needed.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-05-29 20:01:05 UTC
Review of attachment 215216 [details] [review]:

Sure.
Comment 5 Florian Müllner 2012-05-29 20:06:59 UTC
Attachment 215215 [details] pushed as ebbd295 - panel: Refuse to add (legacy) status icons not part of the session mode
Attachment 215216 [details] pushed as cb5ae92 - sessionMode: Add 'input-method' to status icons in user mode