diff options
author | Felipe Heidrich <fheidric> | 2010-08-20 16:21:42 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2010-08-20 16:21:42 +0000 |
commit | f0db433cda800b77239aa0343623c6d1f7f0eeb9 (patch) | |
tree | abfa2ea1c4f9a5e2b2bce7aa3bf116391350e758 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | |
parent | 15127f30a6eb343395557fa6e0e964a69ad06132 (diff) | |
download | eclipse.platform.swt-f0db433cda800b77239aa0343623c6d1f7f0eeb9.tar.gz eclipse.platform.swt-f0db433cda800b77239aa0343623c6d1f7f0eeb9.tar.xz eclipse.platform.swt-f0db433cda800b77239aa0343623c6d1f7f0eeb9.zip |
Bug 323092: ScrollBar SelectionEvent detail field not being set correctly at end of a drag
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index 07580ec938..8448f389d3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -490,7 +490,6 @@ int /*long*/ gtk_value_changed (int /*long*/ adjustment) { case OS.GTK_SCROLL_STEP_LEFT: case OS.GTK_SCROLL_STEP_BACKWARD: event.detail = SWT.ARROW_UP; break; } - detail = OS.GTK_SCROLL_NONE; if (!dragSent) detail = OS.GTK_SCROLL_NONE; sendSelectionEvent (SWT.Selection, event, false); parent.updateScrollBarValue (this); @@ -504,7 +503,7 @@ int /*long*/ gtk_event_after (int /*long*/ widget, int /*long*/ gdkEvent) { case OS.GDK_BUTTON_RELEASE: { GdkEventButton gdkEventButton = new GdkEventButton (); OS.memmove (gdkEventButton, gdkEvent, GdkEventButton.sizeof); - if (gdkEventButton.button == 1 && detail == SWT.DRAG) { + if (gdkEventButton.button == 1 && detail == OS.GTK_SCROLL_JUMP) { if (!dragSent) { Event event = new Event (); event.detail = SWT.DRAG; |