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 689060 - Initial selection is disregarded if it's made before realize
Initial selection is disregarded if it's made before realize
Status: RESOLVED FIXED
Product: egg-list-box
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: egg-list-box-maint
egg-list-box-maint
Depends on:
Blocks:
 
 
Reported: 2012-11-26 03:33 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-12-10 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test-sel, a very dumb test case that shows the behavior (627 bytes, text/x-csrc)
2012-11-26 03:33 UTC, Jasper St. Pierre (not reading bugmail)
Details

Description Jasper St. Pierre (not reading bugmail) 2012-11-26 03:33:26 UTC
Created attachment 229870 [details]
test-sel, a very dumb test case that shows the behavior

See the attached test case. This is sort of a big bug in gnome-initial-setup, as we use the currently selected child to change the user's locale.

This is because of egg_list_box_real_focus, which gets called when the window is shown, which tries to focus the first child. I don't know the full story of the focus logic there, but it looks like there's logic to focus the first child if coming from another widget; which seems wrong if there's a user selection anyway. Focusing into the container shouldn't change the selected item; it should only allow you to keynav with up/down arrows from then on.