Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2018-05-07 12:26:09 +0000
committerSravan Kumar Lakkimsetti2018-05-07 12:30:55 +0000
commita29eed0e7ce3358a979e8a534c6cc1c861ba9bad (patch)
treed5081261d85646d22674dda1100f761954c38f84
parent6c4035bbb449580794650aede943b42e19c59c03 (diff)
downloadeclipse.platform.swt-a29eed0e7ce3358a979e8a534c6cc1c861ba9bad.tar.gz
eclipse.platform.swt-a29eed0e7ce3358a979e8a534c6cc1c861ba9bad.tar.xz
eclipse.platform.swt-a29eed0e7ce3358a979e8a534c6cc1c861ba9bad.zip
Bug 528299 - Eclipse failed to load on PPC64LE platform
Change-Id: I937e069adee673916d25f6bd1365bcedcda9522e Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
index 9dd7efe83c..19357d1248 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
@@ -650,7 +650,7 @@ protected void init () {
long /*int*/ defaultFont;
if (GTK.GTK3) {
long /*int*/ context = GTK.gtk_widget_get_style_context (shellHandle);
- if (GTK.GTK_VERSION < OS.VERSION(3, 8, 0)) {
+ if ((GTK.GTK_VERSION < OS.VERSION(3, 8, 0))|| ("ppc64le".equals(System.getProperty("os.arch")))) {
defaultFont = GTK.gtk_style_context_get_font (context, GTK.GTK_STATE_FLAG_NORMAL);
} else if (GTK.GTK_VERSION >= OS.VERSION(3, 18, 0)) {
GTK.gtk_style_context_save(context);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index f2a8c61ff6..876788b979 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -3066,7 +3066,7 @@ long /*int*/ getFontDescription () {
long /*int*/ [] fontDesc = new long /*int*/ [1];
if (GTK.GTK3) {
long /*int*/ context = GTK.gtk_widget_get_style_context (fontHandle);
- if (GTK.GTK_VERSION < OS.VERSION(3, 8, 0)) {
+ if ((GTK.GTK_VERSION < OS.VERSION(3, 8, 0) || ("ppc64le".equals(System.getProperty("os.arch"))))) {
return GTK.gtk_style_context_get_font(context, GTK.GTK_STATE_FLAG_NORMAL);
} else if (GTK.GTK_VERSION >= OS.VERSION(3, 18, 0)) {
GTK.gtk_style_context_save(context);

Back to the top