summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2012-11-09 14:06:24 +0200
committerAlexander Kurtakov <akurtako@redhat.com>2012-11-09 14:06:24 +0200
commit3119075dc00aef0a5db54f40d0f324cff6c8737f (patch)
treee5f26685befd5a0b9063079e86aa118a27dd22f6
parent97d2d61eb85c401e693398b09a2caecd62a250f7 (diff)
downloadeclipse.platform.swt-3119075dc00aef0a5db54f40d0f324cff6c8737f.tar.gz
eclipse.platform.swt-3119075dc00aef0a5db54f40d0f324cff6c8737f.tar.xz
eclipse.platform.swt-3119075dc00aef0a5db54f40d0f324cff6c8737f.zip
Remove a workaround ignoring MOTION_NOTIFY for pre 2.6 GTK.
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java10
2 files changed, 0 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java
index c0e65db0a0..38f78eb8bc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java
@@ -350,16 +350,6 @@ long /*int*/ gtk_clicked (long /*int*/ widget) {
lastButton = eventButton;
break;
}
- case OS.GDK_MOTION_NOTIFY: {
- /*
- * Bug in GTK. Dragging a column in a GtkTreeView causes a clicked
- * signal to be emitted even though the mouse button was never released.
- * The fix to ignore the signal if the current GDK event is a motion notify.
- * The GTK bug was fixed in version 2.6
- */
- if (OS.GTK_VERSION < OS.VERSION (2, 6, 0)) postEvent = false;
- break;
- }
}
}
if (postEvent) sendSelectionEvent (doubleClick ? SWT.DefaultSelection : SWT.Selection);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java
index e77d6f0fe2..1148d8a700 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java
@@ -352,16 +352,6 @@ long /*int*/ gtk_clicked (long /*int*/ widget) {
lastButton = eventButton;
break;
}
- case OS.GDK_MOTION_NOTIFY: {
- /*
- * Bug in GTK. Dragging a column in a GtkTreeView causes a clicked
- * signal to be emitted even though the mouse button was never released.
- * The fix to ignore the signal if the current GDK event is a motion notify.
- * The GTK bug was fixed in version 2.6
- */
- if (OS.GTK_VERSION < OS.VERSION (2, 6, 0)) postEvent = false;
- break;
- }
}
}
if (postEvent) sendSelectionEvent (doubleClick ? SWT.DefaultSelection : SWT.Selection);