From 065ad1964aea6d373df751968f2de57abe0ee747 Mon Sep 17 00:00:00 2001 From: Arun Thondapu Date: Fri, 25 Oct 2013 15:13:44 -0400 Subject: Bug 420182 - [GTK3] Use GTK 3.x (when available) by default on Linux/Unix instead of GTK 2.x Signed-off-by: Arun Thondapu --- bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.equinox.executable/library') 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); } -- cgit v1.2.3