[gtk+/gtk-3-4] GtkToolbar: Prevent accidental drag starts
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] GtkToolbar: Prevent accidental drag starts
- Date: Sun, 15 Jul 2012 16:58:35 +0000 (UTC)
commit 8190fae7f1b1cda1e979e3e5498174eb2f599e14
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 15 00:56:46 2012 -0400
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
gtk/gtktoolbar.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 3974810..c603878 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2749,6 +2749,9 @@ gtk_toolbar_button_press (GtkWidget *toolbar,
return return_value;
}
+ if (event->type != GDK_BUTTON_PRESS)
+ return FALSE;
+
window = gtk_widget_get_toplevel (toolbar);
if (window)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]