Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-02-06 20:03:34 +0000
committerSilenio Quarti2012-02-06 20:03:48 +0000
commitd7e72ee1edd674fa1cd0705e281c907c9694b440 (patch)
tree69c8eb88a84a6007ec7f21c31082f2958890981b
parentcfd758f6bc3105a48b70306887167291ec4ae15f (diff)
downloadeclipse.platform.swt-d7e72ee1edd674fa1cd0705e281c907c9694b440.tar.gz
eclipse.platform.swt-d7e72ee1edd674fa1cd0705e281c907c9694b440.tar.xz
eclipse.platform.swt-d7e72ee1edd674fa1cd0705e281c907c9694b440.zip
Bug 354978 - Use Cairo as backend for graphics operations (comment#18)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragSourceEffect.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java1
3 files changed, 1 insertions, 4 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 5eeddf3ad0..dc77be2cf6 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,8 +81,6 @@ 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;
/*
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 fa475d2db6..586fb56338 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,8 +80,6 @@ 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;
/*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
index ec42448801..4624bb4e4e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
@@ -1217,6 +1217,7 @@ public static Image gtk_new(Device device, int type, int /*long*/ pixmap, int /*
image.type = type;
image.pixmap = pixmap;
image.mask = mask;
+ if (OS.USE_CAIRO) image.createSurface();
return image;
}

Back to the top