Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Thondapu2013-10-25 19:13:44 +0000
committerBogdan Gheorghe2013-10-25 19:14:21 +0000
commit065ad1964aea6d373df751968f2de57abe0ee747 (patch)
tree716aeea50aa6b5a46e7acd69bf82abe0acfef9b5 /bundles/org.eclipse.equinox.executable/library
parent28c40b451f7e5562f93b0bbdd60d8de2ab27a0a3 (diff)
downloadrt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.tar.gz
rt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.tar.xz
rt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.zip
Bug 420182 - [GTK3] Use GTK 3.x (when available) by default on Linux/Unix instead of GTK 2.x
Signed-off-by: Arun Thondapu <arunkumar.thondapu@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
index b07e35724..996c9ef75 100644
--- a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
+++ b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
@@ -101,8 +101,9 @@ int loadGtk() {
#endif
void *gdkLib = NULL, *gtkLib = NULL, *objLib = NULL, *pixLib = NULL, *x11Lib = NULL;
-
- if (getenv("SWT_GTK3")) {
+
+ char *gtk3 = getenv("SWT_GTK3");
+ if (gtk3 == NULL || strcmp(gtk3,"1") == 0) {
gdkLib = dlopen(GDK3_LIB, DLFLAGS);
gtkLib = dlopen(GTK3_LIB, DLFLAGS);
}

Back to the top