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 646106 - Hover bug in entry completion
Hover bug in entry completion
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkEntry
2.24.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-03-29 14:13 UTC by Michael Terry
Modified: 2018-02-10 03:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (1.20 KB, text/plain)
2011-03-29 14:14 UTC, Michael Terry
  Details
Proposed patch (1.06 KB, patch)
2011-03-29 14:16 UTC, Michael Terry
none Details | Review

Description Michael Terry 2011-03-29 14:13:04 UTC
I've stumbled across an odd bug.  If you trigger an entry completion popup in a modal window, then move your mouse over the list, then use your keyboard to select an item, it is never selected.

It appears to be because the popdown of the list triggers the hover-selection of the popup list.  NULL is selected and then the entry thinks the user didn't select anything.

I have attached a test case.  Make it executable and run it directly (it's a vala script).  Then:
0) move your mouse away from window
1) type "tes"
2) move your mouse over the popup list
3) press up a couple times to select an item like test9
4) press enter

Nothing happens.  What should happen is that test9 is put into the entry and "match selected" is printed in console.  You can get that result by not moving your mouse over the window.  Or by not making the window modal.

I have *a* fix for this that works, but I'm not sure it's *the* fix.  Will attach that too.
Comment 1 Michael Terry 2011-03-29 14:13:20 UTC
Oh, and this doesn't seem to be reproducable in gtk3.
Comment 2 Michael Terry 2011-03-29 14:14:10 UTC
Created attachment 184585 [details]
test case

chmod +x completion
./completion
Comment 3 Michael Terry 2011-03-29 14:16:53 UTC
Created attachment 184586 [details] [review]
Proposed patch

This patch moves the popdown of the list until after we query the selection.
Comment 4 Matthias Clasen 2018-02-10 03:43:52 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.