Keyboard indicator does not update the current layout in its menu when switching through a keyboard shortcut

Bug #621633 reported by David Planella
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gnome-settings-daemon

In bug 531290 the fact that the layout shown in the indicator area was not updated if the layout was switched through a keyboard shortcut was fixed.

What I've noticed, though, is that now what is not being updated is the current layout in the menu that appears when clicking on the indicator.

Assuming I've got 2 different keyboard layouts:

TEST CASE:

1. Press the key set for switching keyboard.
2. Observe the layout being switched and the name of the layout correctly being updated in the indicator area.
3. Type a few characters characteristic from this new layout and observe it is indeed the correct one.
4. Click on the indicator
5. Observe on the list of layouts there that the current layout on the indicator and the one show in the menu underneath differs. The list of layouts showing the currently selected one on that menu does not get updated.

Tags: testcase
Revision history for this message
Martin Pitt (pitti) wrote :

I confirm this bug. I use German and US layouts, and usually toggle between them with both shift keys. The panel label updates, the indicator menu doesn't.

Changed in gnome-settings-daemon (Ubuntu):
status: New → Confirmed
assignee: nobody → Karl Lattimer (karl-qdh)
Revision history for this message
Karl Lattimer (karl-qdh) wrote :

I have been testing this since I released the last update yesterday, the issue is actually an off by one error, if you check it, it's cycling backwards through the options with the keyboard shortcut, off by one. Now I'm not 100% sure where this is happening, and it's pretty damn weird all in all, will continue to investigate.

I hope at least it's usable now.

Thanks for reporting the bug, lets me keep track of it more effectively :)

Karl Lattimer (karl-qdh)
Changed in gnome-settings-daemon (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Karl Lattimer (karl-qdh) wrote :

this bug is now firmly sitting in the realm of *NOT EVEN FUNNY* I cannot locate a single point in the code where the group would be set incorrectly, I've added in various elements to try and catch the error but can't find anything in particular that's off by one... The menu just doesn't seem to want to select the right element :/

Revision history for this message
Karl Lattimer (karl-qdh) wrote :

Turns out this is a bug elsewhere in libindicator or libappindicator and a fix will be released soon.

Karl Lattimer (karl-qdh)
Changed in gnome-settings-daemon (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Victor Zamanian (victorz) wrote :

This is most definitely not invalid (at least not the behavior, but maybe the package).

Karl, would you mind linking to the bugs in libindicator or libappindicator you were talking about back in August so I can subscribe to them? Because I think "soon" has passed, and the off-by-one behavior remains.

Revision history for this message
Victor Zamanian (victorz) wrote :

Wow, reading that I came off really rude. I didn't mean for that to sound the way it does. :) But yes, do you have those bugs?

Revision history for this message
David Planella (dpm) wrote :

In order for this not to fall off the radar, I think it might be useful to either mark it as a duplicate of the existing libindicator bug if there is any, or to add a libindicator task.

In my case, the bug is only partly solved: most of the time switching works well, but in some occasions I can still reproduce it with the same test case as on the original description.

Actually, I've just found another way of reproducing it: hold the key assigned to the keyboard switch for a couple of seconds, so that the indicator switches frantically between layouts for a while. After that, the panel indicator and the menu entry in the indicator will be out of sync.

Revision history for this message
Victor Zamanian (victorz) wrote :

@David: I don't even have to hold it in for a few seconds (to activate the key repeat). All it takes for me is to switch the layout once or twice with the keyboard shortcut I've chosen and it's out of sync.

Revision history for this message
Karl Lattimer (karl-qdh) wrote :

@Victor after speaking with tedg in august he had assured me that it was in libindicator but didn't give me a bug number :/ I am certain however that the bug can't be in gsd because I tried nuking the error in a variety of ways which all led to either the error going in the opposite direction off by one or not changing at all. I'll discuss this bug with tedg again on monday and see if we can figure it out.

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 621633] Re: Keyboard indicator does not update the current layout in its menu when switching through a keyboard shortcut

El ds 13 de 11 de 2010 a les 09:23 +0000, en/na Karl Lattimer va
escriure:
> @Victor after speaking with tedg in august he had assured me that it was
> in libindicator but didn't give me a bug number :/ I am certain however
> that the bug can't be in gsd because I tried nuking the error in a
> variety of ways which all led to either the error going in the opposite
> direction off by one or not changing at all. I'll discuss this bug with
> tedg again on monday and see if we can figure it out.
>

Karl,

Have you had the chance to talk to Ted about this and add a task with
the libindicator bug?

If not, do you think we could at least reopen the bug against g-s-d or
open a new task agains libindicator in the meantime ? It has been
confirmed already, and right now it remaining as Invalid does not make
it easier to track.

Thanks!

Regards,
David.

Revision history for this message
David Planella (dpm) wrote :

Reopening for someone to confirm. I could see this behaviour in two different computers

Changed in gnome-settings-daemon (Ubuntu):
status: Invalid → New
Revision history for this message
Victor Zamanian (victorz) wrote :

I can confirm this with an up-to-date Ubuntu 10.10.

Changed in gnome-settings-daemon (Ubuntu):
status: New → Confirmed
Revision history for this message
Victor Zamanian (victorz) wrote :

Attached screenshot of incorrect behavior.

Revision history for this message
Karl Lattimer (karl-qdh) wrote :

Yeah, I realised that this still wasn't fixed a while ago, I'll add it to my things bug ted about.

Revision history for this message
Oded Arbel (oded-geek) wrote :

There are a few keyboard indicator bugs listed, and I'm not even sure which pertains to what - here is the behavior I experience with the current Natty (11.04), please let me know which problem is not relevant to this bug report (and if there is a report for that or I need to open a new one):
1. A new user logs in for the first time. Sets up keyboard layouts - the default is US and a new non-latin layout is added. Keyboard shortcut switching is also set up.
2. Open an application and start typing: text comes out latin; indicator shows "USA"; indicator menu shows "USA" selected.
3. Hit the layout switching shortcut and continue typing: text comes out non-latin; indicator shows "USA"; indicator menu shows "USA"
4. Hit the layout switching shortcut again and continue typing: text comes out latin; indicator shows "USA"; indicator menu shows the non-latin layout selected.
5. Open indicator menu and select the non-latin layout (that is already marked selected) and type: text comes out non-latin; indicator shows "USA"; indicator menu shows the non-latin layout selected.
6. Hit the keyboard shortcut and type: text comes out latin; indicator shows "USA"; indicator layout menu shows the non-latin layout selected.
7. Hit the keyboard shortcut again and type: text comes out non-latin; indicator shows "USA"; indicator meny shows the "USA".

So, how many bugs do we have here?

Revision history for this message
Sebastien Bacher (seb128) wrote :

David could you try if that's still an issue in natty?

Changed in gnome-settings-daemon (Ubuntu):
assignee: Karl Lattimer (karl-qdh) → nobody
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
David Planella (dpm) wrote :

It is no longer an issue in Natty.

Layouts are now updated in the menu, although they don't seem to match the label shown (correctly) in the indicator. I think this was another bug, so I'll search for it or report a new one.

Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → Fix Released
tags: added: testcase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.