Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-12-03 14:49:03 +0000
committerEric Williams2018-12-03 16:52:52 +0000
commit4c10ac183b1459e653d9c7dcc84e0184ca05d977 (patch)
treedd3fd890984f48ea9642bf000e10386945692770
parent3b5aa306780b5267ef952b42b620958cff2c07ec (diff)
downloadeclipse.platform.swt-4c10ac183b1459e653d9c7dcc84e0184ca05d977.tar.gz
eclipse.platform.swt-4c10ac183b1459e653d9c7dcc84e0184ca05d977.tar.xz
eclipse.platform.swt-4c10ac183b1459e653d9c7dcc84e0184ca05d977.zip
Bug 540801: [GTK4] Build SWT on GTK4
Make GTK3 default for now until GTK4 is stable. Change-Id: I4449fcf496d599dd9cd4f76696e8ca364b4b3cd9 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index 8938b2b413..b407f9600f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -75,17 +75,17 @@ public class OS extends C {
static {
String propertyName = "SWT_GTK4";
String gtk4 = getEnvironmentalVariable (propertyName);
- if (gtk4 != null && gtk4.equals("0")) {
+ if (gtk4 != null && gtk4.equals("1")) {
try {
- Library.loadLibrary("swt-pi3");
- } catch (Throwable e) {
Library.loadLibrary("swt-pi4");
+ } catch (Throwable e) {
+ Library.loadLibrary("swt-pi3");
}
} else {
try {
- Library.loadLibrary("swt-pi4");
- } catch (Throwable e) {
Library.loadLibrary("swt-pi3");
+ } catch (Throwable e) {
+ Library.loadLibrary("swt-pi4");
}
}
cachejvmptr();

Back to the top