diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2011-11-25 12:31:23 -0500 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2011-11-25 12:31:23 -0500 |
commit | d362bd5d08ab4680f6698f4000ad1598b6fffe44 (patch) | |
tree | fd18a84ae705997bde774b186d64241732a16a75 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop | |
parent | fc36e7255b8f05c052b350823b359de456f7d78b (diff) | |
download | eclipse.platform.swt-d362bd5d08ab4680f6698f4000ad1598b6fffe44.tar.gz eclipse.platform.swt-d362bd5d08ab4680f6698f4000ad1598b6fffe44.tar.xz eclipse.platform.swt-d362bd5d08ab4680f6698f4000ad1598b6fffe44.zip |
Bug 364762 - Conditional usage of GtkTreeView newer coord function. (condition wrong)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDropTargetEffect.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDropTargetEffect.java index 00642a449b..77e2a7ce52 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDropTargetEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDropTargetEffect.java @@ -168,9 +168,9 @@ public class TreeDropTargetEffect extends DropTargetEffect { if (cellRect.y < cellRect.height) { int[] tx = new int[1], ty = new int[1]; if (OS.GTK_VERSION >= OS.VERSION(2, 12, 0)) { - OS.gtk_tree_view_widget_to_tree_coords(handle, cellRect.x, cellRect.y - cellRect.height, tx, ty); - } else { OS.gtk_tree_view_convert_widget_to_bin_window_coords(handle, cellRect.x, cellRect.y - cellRect.height, tx, ty); + } else { + OS.gtk_tree_view_widget_to_tree_coords(handle, cellRect.x, cellRect.y - cellRect.height, tx, ty); } OS.gtk_tree_view_scroll_to_point (handle, -1, ty[0]); } else { |