diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-06 17:20:04 -0500 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-06 17:20:04 -0500 |
commit | 033543d2c530f3ef9e2efb7e2d0271a91bde3d81 (patch) | |
tree | af268007f0cd3afdc7c08f29549c28c03444717b /bundles/org.eclipse.swt/Eclipse SWT/gtk | |
parent | 39ea37fd2c6d90b10f7eb09a640cff1075657b69 (diff) | |
download | eclipse.platform.swt-033543d2c530f3ef9e2efb7e2d0271a91bde3d81.tar.gz eclipse.platform.swt-033543d2c530f3ef9e2efb7e2d0271a91bde3d81.tar.xz eclipse.platform.swt-033543d2c530f3ef9e2efb7e2d0271a91bde3d81.zip |
Bug 392700 - Bad scrolling in editor (N20121022-1000)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java | 11 |
1 files changed, 1 insertions, 10 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 8b8cb099a4..184bcf548c 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 @@ -12,7 +12,6 @@ package org.eclipse.swt.widgets; import org.eclipse.swt.graphics.*; -import org.eclipse.swt.internal.cairo.Cairo; import org.eclipse.swt.internal.gtk.*; import org.eclipse.swt.*; @@ -287,16 +286,8 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b redrawWidget (x, y, width, height, false, false, false); redrawWidget (destX, destY, width, height, false, false, false); } else { -// GC gc = new GC (this); -// gc.copyArea (x, y, width, height, destX, destY); -// gc.dispose (); if (OS.GTK3) { - OS.gdk_window_invalidate_rect (window, copyRect, true); - long /*int*/ cairo = OS.gdk_cairo_create (window); - OS.gdk_cairo_set_source_window (cairo, window, 0, 0); - Cairo.cairo_rectangle (cairo, copyRect.x + deltaX, copyRect.y + deltaY, copyRect.width, copyRect.height); - Cairo.cairo_fill (cairo); - Cairo.cairo_destroy (cairo); + OS.gdk_window_scroll (window, deltaX, deltaY); } else { long /*int*/ gdkGC = OS.gdk_gc_new (window); OS.gdk_gc_set_exposures (gdkGC, true); |