summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Thondapu2013-10-25 15:13:44 (EDT)
committer Bogdan Gheorghe2013-10-25 15:14:21 (EDT)
commit065ad1964aea6d373df751968f2de57abe0ee747 (patch)
tree716aeea50aa6b5a46e7acd69bf82abe0acfef9b5
parent28c40b451f7e5562f93b0bbdd60d8de2ab27a0a3 (diff)
downloadrt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.zip
rt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.tar.gz
rt.equinox.framework-065ad1964aea6d373df751968f2de57abe0ee747.tar.bz2
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>
-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 b07e357..996c9ef 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);
}