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 603250 - [Regression] ComboBox choices disappear when mouse button released (gtk+-2.18.3)
[Regression] ComboBox choices disappear when mouse button released (gtk+-2.18.3)
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.18.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 606709 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-28 20:12 UTC by Bug ByteMan
Modified: 2018-02-10 03:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case from link above (1.44 KB, text/plain)
2009-12-07 13:23 UTC, Tor Lillqvist
Details

Description Bug ByteMan 2009-11-28 20:12:05 UTC
I have been experiencing intermittent combobox problems using gtk+-2.18.3 on Windows XP.

Sometimes (rarely) the click/release on the combobox works as expected (choices remain displayed).  Other times the choices are displayed and immediately disappear when the mouse button is released.

Test program source: http://www.cinterviews.com/2009/11/gtkcombobox-gtk-widgets.html

Everything works fine when I revert to gtk+2.16.6

Any help would be greatly appreciated.
Comment 1 Tor Lillqvist 2009-12-07 13:23:03 UTC
Created attachment 149243 [details]
Test case from link above
Comment 2 Tor Lillqvist 2009-12-07 23:01:50 UTC
The problem is related to where one clicks the combo box. If one clicks close to the left or right border, the menu stays up, reliably. Investigating...
Comment 3 Tor Lillqvist 2009-12-08 01:44:09 UTC
The problem is related to the lack of synthesized enter and leave events when grabbing and ungrabbing the pointer, I think. I spent some hours trying out some fix but didn't arrive at any good solution. I got the combo box menu to stay up after clicking, but then the highlighting of menu items when moving the mouse over them didn't happen.

(What I tried was to call synthesize_enter_or_leave_event() in _gdk_windowing_pointer_grab() in gdkevents-win32.c. Stashed diff available on request if somebody else is interested.)

For now, users will just have to get used to keep the mouse button down when using combo boxes.
Comment 4 Hans Breuer 2010-01-30 18:58:39 UTC
*** Bug 606709 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Clasen 2018-02-10 03:39:37 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.