aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-05-13 13:36:13 (EDT)
committerMarc-Andre Laperle2014-05-13 13:36:29 (EDT)
commit2958e16615b4d5e0811266d64a0c720c35a392bf (patch)
treeb3cacb86acec53a471c4f4c3c58a96324e61d1aa
parent2247f34f7e6717b23f83a3e524d9181bdd001eaf (diff)
downloadeclipse.platform.swt-2958e16615b4d5e0811266d64a0c720c35a392bf.zip
eclipse.platform.swt-2958e16615b4d5e0811266d64a0c720c35a392bf.tar.gz
eclipse.platform.swt-2958e16615b4d5e0811266d64a0c720c35a392bf.tar.bz2
Bug 427480 - [GTK3] [GTK3.10] Table display issues when content requires Scrollrefs/changes/71/26471/1
Change-Id: I015a0e42e7da8fb6bbf17c047506bf7b2ec0acf6 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index 1d79800..96493c6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -2696,6 +2696,11 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo
sendEvent (SWT.EraseItem, event);
drawForeground = null;
drawState = event.doit ? event.detail : 0;
+ // A temporary fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=427480
+ // Force native painting
+ if (OS.GTK_VERSION >= OS.VERSION(3, 9, 0)) {
+ drawState |= SWT.FOREGROUND;
+ }
drawFlags &= ~(OS.GTK_CELL_RENDERER_FOCUSED | OS.GTK_CELL_RENDERER_SELECTED);
if ((drawState & SWT.SELECTED) != 0) drawFlags |= OS.GTK_CELL_RENDERER_SELECTED;
if ((drawState & SWT.FOCUSED) != 0) drawFlags |= OS.GTK_CELL_RENDERER_FOCUSED;