Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2015-05-27 02:25:37 -0400
committerSravan Kumar Lakkimsetti2015-08-12 06:37:50 -0400
commit11ab3fb41bc0630b5fd28e3919ec55eaccb72e67 (patch)
tree80421aa6782caed7df09e3fc458ee5b26816157e
parent80fd1b61e5505220ee017b3bdf198512f5d401da (diff)
downloadeclipse.platform.swt-11ab3fb41bc0630b5fd28e3919ec55eaccb72e67.tar.gz
eclipse.platform.swt-11ab3fb41bc0630b5fd28e3919ec55eaccb72e67.tar.xz
eclipse.platform.swt-11ab3fb41bc0630b5fd28e3919ec55eaccb72e67.zip
Bug 468208 - [GTK3] Background not painted correctly when using
SWT.EraseItem Change-Id: Iea209de4f7386ed096a9988c6013a06292726697 Change-Id: I1bbee7468ba50f59d22ff75bf11239d33622a35c Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java3
2 files changed, 6 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 e9aa9c6097..e49865b339 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
@@ -2744,6 +2744,9 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo
GdkRectangle r = new GdkRectangle();
OS.gdk_cairo_get_clip_rectangle(cr, r);
gc.setClipping(rect.x, r.y, r.width, r.height);
+ if (OS.GTK_VERSION <= OS.VERSION(3, 14, 8)) {
+ rect.width = r.width;
+ }
} else {
gc.setClipping (rect.x, rect.y, rect.width, rect.height);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
index 62fbf3d090..4d5448af65 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
@@ -2757,6 +2757,9 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo
GdkRectangle r = new GdkRectangle();
OS.gdk_cairo_get_clip_rectangle(cr, r);
gc.setClipping(rect.x, r.y, r.width, r.height);
+ if (OS.GTK_VERSION <= OS.VERSION(3, 14, 8)) {
+ rect.width = r.width;
+ }
} else {
gc.setClipping (rect.x, rect.y, rect.width, rect.height);
}

Back to the top