Bug 432673 - SWT GTK3 doesn't render tables with GTK3 Theme "oxygen-gtk"
According to the developers of the oxygen-gtk theme, the
OXYGEN_DISABLE_INNER_SHADOWS_HACK=1 variable is supposed to fix issues
with rendering of non-true-GTK apps like Eclipse on GTK3 with the
oxygen-gtk theme set. See https://bugs.kde.org/show_bug.cgi?id=342318
for details.
Change-Id: I1f881f7ce4a5c9a84536b7e1859d3d120b7f58de
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
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 5e37448..9b6a777 100644
--- a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
+++ b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
@@ -114,6 +114,11 @@
setenv("LIBOVERLAY_SCROLLBAR", "0", 0);
}
+ char *oxygenGtkHack = getenv("OXYGEN_DISABLE_INNER_SHADOWS_HACK");
+ if (oxygenGtkHack == NULL) {
+ setenv("OXYGEN_DISABLE_INNER_SHADOWS_HACK", "1", 0);
+ }
+
void *gdkLib = NULL, *gtkLib = NULL, *objLib = NULL, *pixLib = NULL, *x11Lib = NULL;
char *gtk3 = getenv("SWT_GTK3");