aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Langenmaier <stefan.langenmaier@gmail.com>2016-02-24 16:59:23 -0500
committerStefan Langenmaier <stefan.langenmaier@gmail.com>2016-02-24 16:59:23 -0500
commitc0e6b7ea18c3790986fed75a544b3b15e6ade64d (patch)
tree744f673cfb70727027fb677f9401adc89a7750e4
parentUpdate to 4.5.2 (diff)
downloadeclipse-c0e6b7ea18c3790986fed75a544b3b15e6ade64d.tar.gz
eclipse-c0e6b7ea18c3790986fed75a544b3b15e6ade64d.tar.bz2
eclipse-c0e6b7ea18c3790986fed75a544b3b15e6ade64d.zip
added option to choose gtk version
if nothing is specified then it uses the system default
-rw-r--r--dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipse-bin3
-rw-r--r--dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipserc-bin5
2 files changed, 8 insertions, 0 deletions
diff --git a/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipse-bin b/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipse-bin
index 87d5531..16fbc12 100644
--- a/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipse-bin
+++ b/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipse-bin
@@ -40,4 +40,7 @@ esac
# Fix for JRE 1.5.
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib
+# option to switch GTK backend
+[ -n "${SWT_GTK3}" ] && export SWT_GTK3="${SWT_GTK3}"
+
exec "${ECLIPSE_BIN}" -vm $(java-config --java) "$@" "${ECLIPSE_USER_ARGS}" -vmargs ${VM_ARGS}
diff --git a/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipserc-bin b/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipserc-bin
index c2c334e..c1b50eb 100644
--- a/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipserc-bin
+++ b/dev-util/eclipse-sdk-bin/files/eclipse-sdk-bin-4.5.2-eclipserc-bin
@@ -18,3 +18,8 @@ ECLIPSE_XMX=256m
#ECLIPSE_PERMSIZE=64m
#ECLIPSE_MAX_PERMSIZE=128m
+
+# Eclipse 4.5 Mars has some visual issues with GTK>=3.16
+# SWT_GTK3=1 - to enable GTK3
+# SWT_GTK3=0 - to enable GTK2
+SWT_GTK3=