aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Thondapu2014-01-13 09:23:19 (EST)
committerGerrit Code Review @ Eclipse.org2014-01-15 14:38:11 (EST)
commit968ac839d18927c68719d479979a15e2728cab79 (patch)
tree3d9d6b7d2b968a8e30a8fdb6b9aa507b935b603f
parentbfbb93ac8958a72b912beb586576eb3be96bf229 (diff)
downloadrt.equinox.framework-968ac839d18927c68719d479979a15e2728cab79.zip
rt.equinox.framework-968ac839d18927c68719d479979a15e2728cab79.tar.gz
rt.equinox.framework-968ac839d18927c68719d479979a15e2728cab79.tar.bz2
Bug 425563 - [GTK3] SWT_GTK3 variable has inconsistent effect betweenM20140116-0900M20140116-0200M20140115-1810refs/changes/77/20577/2
4.3 and 4.4 Change-Id: Ic3ffd4aeff19069753b0c6d3b7174f11bad7f178 Signed-off-by: Arun Thondapu <arunkumar.thondapu@in.ibm.com>
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
index 51ed70a..da27e56 100644
--- a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
+++ b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
@@ -101,7 +101,8 @@ int loadGtk() {
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);
}