summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2012-01-18 11:59:30 -0500
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2012-01-18 11:59:30 -0500
commit85eae7efec0f41bdf1f41e3f2bc6f9a1ce785823 (patch)
treecd2b9392d95aa8c902f5f5a13bf6a0420c9c8405 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parent9b6f622a04ffc6428b9bddee8e107bf304da0051 (diff)
downloadeclipse.platform.swt-85eae7efec0f41bdf1f41e3f2bc6f9a1ce785823.tar.gz
eclipse.platform.swt-85eae7efec0f41bdf1f41e3f2bc6f9a1ce785823.tar.xz
eclipse.platform.swt-85eae7efec0f41bdf1f41e3f2bc6f9a1ce785823.zip
Temporarily disable DND effects in Tree/Table when using Cairo
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/TableDragSourceEffect.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
index 63b02999fe..d5bd29b79c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
@@ -81,6 +81,8 @@ public class TableDragSourceEffect extends DragSourceEffect {
Table table = (Table) control;
if (OS.GTK_VERSION < OS.VERSION (2, 2, 0)) return null;
+ //TODO: Use Cairo
+ if (OS.USE_CAIRO) return null;
//TEMPORARY CODE
if (table.isListening(SWT.EraseItem) || table.isListening (SWT.PaintItem)) return null;
/*
@@ -116,7 +118,6 @@ public class TableDragSourceEffect extends DragSourceEffect {
yy[i] = rect.y;
hh[i] = h[0];
}
- //TODO: Use Cairo
int /*long*/ source = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, -1);
int /*long*/ gcSource = OS.gdk_gc_new(source);
int /*long*/ mask = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, 1);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java
index 5a49a38ff7..593c80b37c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java
@@ -80,6 +80,8 @@ public class TreeDragSourceEffect extends DragSourceEffect {
Tree tree = (Tree) control;
if (OS.GTK_VERSION < OS.VERSION (2, 2, 0)) return null;
+ //TODO: Use Cairo
+ if (OS.USE_CAIRO) return null;
//TEMPORARY CODE
if (tree.isListening(SWT.EraseItem) || tree.isListening (SWT.PaintItem)) return null;
/*
@@ -115,7 +117,6 @@ public class TreeDragSourceEffect extends DragSourceEffect {
yy[i] = rect.y;
hh[i] = h[0];
}
- //TODO: Use Cairo
int /*long*/ source = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, -1);
int /*long*/ gcSource = OS.gdk_gc_new(source);
int /*long*/ mask = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, 1);