Bug 357696 - Always use Cairo for GC with GTK > 2.17
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 7b89886..5a0ea64 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 @@
}
}
- 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;