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 695841 - status/keyboard: Fixes for a couple of bugs with invalid input source entries
status/keyboard: Fixes for a couple of bugs with invalid input source entries
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: 2013-03-14 12:32 UTC by Rui Matos
Modified: 2013-03-14 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
status/keyboard: Always hide the old source panel indicator label (1.69 KB, patch)
2013-03-14 12:33 UTC, Rui Matos
committed Details | Review
status/keyboard: Check if this._currentSource is valid on activation (1.17 KB, patch)
2013-03-14 12:33 UTC, Rui Matos
committed Details | Review

Description Rui Matos 2013-03-14 12:32:58 UTC
Thanks to Mike Fabian for reporting these on IRC.
Comment 1 Rui Matos 2013-03-14 12:33:01 UTC
Created attachment 238866 [details] [review]
status/keyboard: Always hide the old source panel indicator label

When we switch into an invalid input source we hide the panel
indicator and return early but we were not hiding the previously
active source label and its menu item dot and thus when switching
again to a third input source we would end up showing 2 overlapping
labels in the panel and the menu would have 2 entries with a dot.
Comment 2 Rui Matos 2013-03-14 12:33:05 UTC
Created attachment 238867 [details] [review]
status/keyboard: Check if this._currentSource is valid on activation

this._currentSource might be invalid so check for that to prevent an
exception and still switch to the newly activated source.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-03-14 13:36:36 UTC
Review of attachment 238866 [details] [review]:

OK.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-03-14 13:36:50 UTC
Review of attachment 238867 [details] [review]:

I'm not sure why this._currentSource would be invalid, but OK.
Comment 5 Rui Matos 2013-03-14 14:07:24 UTC
(In reply to comment #4)
> I'm not sure why this._currentSource would be invalid, but OK.

That's happens if the gsetting has "garbage" or, more likely an ibus
engine id for an engine that for some reason doesn't work anymore,
like it could have been uninstalled or has some bug and crashes or
so.


Attachment 238866 [details] pushed as 5c89568 - status/keyboard: Always hide the old source panel indicator label
Attachment 238867 [details] pushed as 01deb9e - status/keyboard: Check if this._currentSource is valid on activation
Comment 6 Mike FABIAN 2013-03-14 15:19:55 UTC
Thank you, that works.