summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2011-09-14 17:51:21 -0400
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2011-09-14 17:51:50 -0400
commita30cce421784b9ed07fbf57df74f603a29f7a0d5 (patch)
treeddec1664275173e27f294f44b681224f6eb0c7e1
parentc52213e1ca2eba332792895e7a5a8570b6375cc2 (diff)
downloadeclipse.platform.swt-a30cce421784b9ed07fbf57df74f603a29f7a0d5.tar.gz
eclipse.platform.swt-a30cce421784b9ed07fbf57df74f603a29f7a0d5.tar.xz
eclipse.platform.swt-a30cce421784b9ed07fbf57df74f603a29f7a0d5.zip
Bug 357696 - Always use Cairo for GC with GTK > 2.17
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
index 7b898867a3..5a0ea64eb5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
@@ -589,10 +589,12 @@ protected void init () {
}
}
- if (OS.GTK_VERSION > OS.VERSION (2, 17, 0) && System.getProperty("org.eclipse.swt.internal.gtk.useCairo") != null) {
- useCairo = true;
+ if (OS.GTK_VERSION > OS.VERSION (2, 17, 0)) {
+ useCairo = !"false".equals(System.getProperty("org.eclipse.swt.internal.gtk.useCairo"));
}
+
+
//TODO: Remove; temporary code only
boolean fixAIX = OS.IsAIX && OS.PTR_SIZEOF == 8;