mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
GtkToolbar: Prevent accidental drag starts
We don't want to start drags on double- or triple clicks, and doing so causes problems for embedded range widgets. https://bugzilla.gnome.org/show_bug.cgi?id=675535
This commit is contained in:
parent
33d2af0036
commit
2cecc1f922
@ -2750,7 +2750,7 @@ gtk_toolbar_button_press (GtkWidget *toolbar,
|
||||
return return_value;
|
||||
}
|
||||
|
||||
if (event->type == GDK_2BUTTON_PRESS)
|
||||
if (event->type != GDK_BUTTON_PRESS)
|
||||
return FALSE;
|
||||
|
||||
window = gtk_widget_get_toplevel (toolbar);
|
||||
|
Loading…
Reference in New Issue
Block a user