Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2012-01-19 14:16:09 -0500
committerBogdan Gheorghe2012-01-19 14:16:09 -0500
commit112672dabefda21eb978c989851bf397d3879a9d (patch)
tree4a2c52dee54967edfb10c0ac86b91aba36abb216
parent2409e4895346facaeea6eeef6414188a3d1e2f65 (diff)
downloadeclipse.platform.swt-Bug354978.tar.gz
eclipse.platform.swt-Bug354978.tar.xz
eclipse.platform.swt-Bug354978.zip
Fix drawBackground for Tree/Table with clippingBug354978
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java5
1 files changed, 4 insertions, 1 deletions
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 60b74181bd..912e78f2b0 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
@@ -112,7 +112,10 @@ void drawBackground (Control control, int /*long*/ window, int /*long*/ region,
if (OS.USE_CAIRO) {
int /*long*/ cairo = OS.gdk_cairo_create(window);
if (cairo == 0) error (SWT.ERROR_NO_HANDLES);
- if (region != 0) OS.gdk_cairo_region(cairo, region);
+ if (region != 0) {
+ OS.gdk_cairo_region(cairo, region);
+ Cairo.cairo_clip(cairo);
+ }
if (control.backgroundImage != null) {
Point pt = display.map (this, control, 0, 0);
Cairo.cairo_translate (cairo, -pt.x, -pt.y);

Back to the top