GNOME Bugzilla – Bug 54353
gtk_combo moves selection erratnly
Last modified: 2011-02-04 16:11:52 UTC
When you click on the button to pop-down the list of selections for the combo, if you hold the button down and move the cursor the selection of the combo will jump to the first possible option. This can be very annoying!
*** Bug 65009 has been marked as a duplicate of this bug. ***
*** Bug 65706 has been marked as a duplicate of this bug. ***
In addition to the above: If you click on the URL dialog down-arrow to see the recent history of typed-in URLs, go down the list with the left button down, change your mind and drag the mouse away, it *always* loads the URL you last highlighted, which is a little annoying. I'd suggest requiring the user to hit enter or double-click on the URL. (note that this is not the same as described in the above report)
I have been told under #84365 that this bug is hard to fix, but couldn't find traces of discussions explaining why this bug is hard to fix. Could someone explain ? Can't the mouse coordinates be checked to avoid generating the "changed" signal when the mouse is not inside the list ? Arno
*** Bug 91586 has been marked as a duplicate of this bug. ***
*** Bug 96170 has been marked as a duplicate of this bug. ***
Moving to 2.2.0 so we don't forget about it with it among the 1.2.11 backport bugs.
Created attachment 12289 [details] [review] The patch...
Created attachment 12293 [details] [review] New attempt, less coincidentally working
Turns out there was already was code in there to try and fix the problem, it just wasn't working for various reasons. The first patch above fixes the problem, but on closer inspection, it's all basically coincidental. The second patch iscloser to right. What it does is fixes the code that does the "simulated button on enter" to actually work as expected by passing in the window for a list item, then fixes some other grab related stuff. Wed Nov 13 15:52:53 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkcombo.c (gtk_combo_activate): Fix warning. * gtk/gtkcombo.c: Fix code that was meant to delay grabbing events on the list until we had an enter-notify. (#54353, reported by Mike Fulbright, others)