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 65009 - GtkCombo - accidentally selecting first item in popup
GtkCombo - accidentally selecting first item in popup
Status: RESOLVED DUPLICATE of bug 54353
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-11-21 02:01 UTC by Damon Chaplin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Damon Chaplin 2001-11-21 02:01:31 UTC
If you click the popup arrow to show the GtkCombo's popup list, then move
the mouse slightly while still holding the button down, it selects the
first element in the list.

It is easy to do this accidentally when clicking the button to show the
popup.

(This bug is also in 1.2.x)

This is related to the fact that you can select an item with a single
click and drag. So as soon as the popup is shown it goes into selection
mode, and if you move the mouse it selects the closest item.

One possible solution would be to add a flag 'starting_drag' which you
set when the button is pressed and the popup is initially shown.
Then you ignore mouse motion events until the mouse enters the list window,
at which point you reset 'starting_drag' and start selecting items.
Comment 1 Owen Taylor 2001-11-21 14:44:47 UTC

*** This bug has been marked as a duplicate of 54353 ***