summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2013-04-30 10:44:40 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2013-04-30 10:44:40 -0400
commit7cb7064af33ca9ed27879223d92b079e0317e481 (patch)
tree06b33aa5f7e9000c08c74f7f03ec143a533d5e9b
parent873a9a76611be625b45716322ad5255e3ae4a6fc (diff)
downloadeclipse.platform.swt-7cb7064af33ca9ed27879223d92b079e0317e481.tar.gz
eclipse.platform.swt-7cb7064af33ca9ed27879223d92b079e0317e481.tar.xz
eclipse.platform.swt-7cb7064af33ca9ed27879223d92b079e0317e481.zip
Bug 392700 - [GTK3] Java editor paint problems - comment#9
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java
index 201ace8599..95f0bc0496 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java
@@ -288,20 +288,20 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b
redrawWidget (destX, destY, width, height, false, false, false);
} else {
if (OS.GTK3) {
-// OS.gdk_window_scroll (window, deltaX, deltaY);
- long /*int*/ cairo = OS.gdk_cairo_create(window);
- Cairo.cairo_rectangle(cairo, destX, destY, width, height);
- Cairo.cairo_clip(cairo);
- Cairo.cairo_translate(cairo, deltaX, deltaY);
- Cairo.cairo_set_operator(cairo, Cairo.CAIRO_OPERATOR_SOURCE);
- Cairo.cairo_push_group(cairo);
- OS.gdk_cairo_set_source_window(cairo, window, 0, 0);
- Cairo.cairo_paint(cairo);
- Cairo.cairo_pop_group_to_source(cairo);
- Cairo.cairo_rectangle(cairo, destX - deltaX, destY - deltaY, width, height);
- Cairo.cairo_clip(cairo);
- Cairo.cairo_paint(cairo);
- Cairo.cairo_destroy(cairo);
+ OS.gdk_window_scroll (window, deltaX, deltaY);
+// long /*int*/ cairo = OS.gdk_cairo_create(window);
+// Cairo.cairo_rectangle(cairo, destX, destY, width, height);
+// Cairo.cairo_clip(cairo);
+// Cairo.cairo_translate(cairo, deltaX, deltaY);
+// Cairo.cairo_set_operator(cairo, Cairo.CAIRO_OPERATOR_SOURCE);
+// Cairo.cairo_push_group(cairo);
+// OS.gdk_cairo_set_source_window(cairo, window, 0, 0);
+// Cairo.cairo_paint(cairo);
+// Cairo.cairo_pop_group_to_source(cairo);
+// Cairo.cairo_rectangle(cairo, destX - deltaX, destY - deltaY, width, height);
+// Cairo.cairo_clip(cairo);
+// Cairo.cairo_paint(cairo);
+// Cairo.cairo_destroy(cairo);
} else {
long /*int*/ gdkGC = OS.gdk_gc_new (window);
OS.gdk_gc_set_exposures (gdkGC, true);