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:
Matthias Clasen 2012-05-25 23:17:43 -04:00
parent 33d2af0036
commit 2cecc1f922

View File

@ -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);