summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-05-25 23:17:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-05-25 23:17:43 -0400
commit2cecc1f922f68b1d9eff9fa12c3b67c4d67e386b (patch)
treed656dc99006007bc632723465a83f3291590a78d /gtk/gtktoolbar.c
parent33d2af0036706b7bcb0c83a826870907d2e5f762 (diff)
downloadgtk+-2cecc1f922f68b1d9eff9fa12c3b67c4d67e386b.tar.gz
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
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index f98762c0d7..5dfa206bdc 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -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);