Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2015-05-27 06:25:37 +0000
committerSravan Kumar Lakkimsetti2015-08-11 11:01:20 +0000
commit292196c4f29d5ffc8c6ae5f731cf6d40723a6ba1 (patch)
tree8ad98d443c9a9925e734ba3e7f0ad1dc92735c16
parentffaea2f429dc3d913dc5efbd4d98a9ad86ace7d5 (diff)
downloadeclipse.platform.swt-292196c4f29d5ffc8c6ae5f731cf6d40723a6ba1.tar.gz
eclipse.platform.swt-292196c4f29d5ffc8c6ae5f731cf6d40723a6ba1.tar.xz
eclipse.platform.swt-292196c4f29d5ffc8c6ae5f731cf6d40723a6ba1.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 77387d61da..a87eb340ee 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
@@ -2745,6 +2745,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 992bd1a47f..bc64152cfe 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
@@ -2758,6 +2758,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