aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnjezana Peco2014-04-18 15:11:34 (EDT)
committerArun Thondapu2014-04-27 10:27:14 (EDT)
commita8f2f3ce06e6b080f57995fbe883c8c15e3b7c54 (patch)
tree00864a521df7b565b8898433e28bf384d8cbe0ba
parent95182ccd2908446c4a49064e442c7923c70e257f (diff)
downloadeclipse.platform.swt-a8f2f3ce06e6b080f57995fbe883c8c15e3b7c54.zip
eclipse.platform.swt-a8f2f3ce06e6b080f57995fbe883c8c15e3b7c54.tar.gz
eclipse.platform.swt-a8f2f3ce06e6b080f57995fbe883c8c15e3b7c54.tar.bz2
fixing cairo clippingrefs/changes/90/25290/6
Change-Id: I6901856b72f28e56d6a5501cf60cbb340bfecdf3 Signed-off-by: Snjezana Peco <snjeza.peco@gmail.com>
-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 3332404..7fac835 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
@@ -3162,7 +3162,10 @@ long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) {
if ((style & SWT.MIRRORED) != 0) event.x = getClientWidth () - event.width - event.x;
GCData data = new GCData ();
// data.damageRgn = gdkEvent.region;
- data.cairo = cairo;
+ if (OS.GTK_VERSION <= OS.VERSION(3, 9, 0)) {
+ data.cairo = cairo;
+ }
+
GC gc = event.gc = GC.gtk_new (this, data);
drawWidget (gc);
sendEvent (SWT.Paint, event);