diff options
author | Silenio Quarti <silenio> | 2002-05-30 20:41:34 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-05-30 20:41:34 +0000 |
commit | 223e7af2cd6779471051234346ee12bfc7a23559 (patch) | |
tree | 5754b3bf1e17716e74d52ca57a9d8a7008a9d08b /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java | |
parent | 7385d958f220b095b02b4aa5962545e2f0470852 (diff) | |
download | eclipse.platform.swt-223e7af2cd6779471051234346ee12bfc7a23559.tar.gz eclipse.platform.swt-223e7af2cd6779471051234346ee12bfc7a23559.tar.xz eclipse.platform.swt-223e7af2cd6779471051234346ee12bfc7a23559.zip |
16174
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java | 5 |
1 files changed, 4 insertions, 1 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 3d1d058f22..27f9be8f52 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 @@ -160,7 +160,10 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b // gc.copyArea (x, y, width, height, destX, destY); // gc.dispose (); - update (); + OS.gdk_flush (); + while ((OS.gtk_events_pending()) != 0) { + OS.gtk_main_iteration (); + } int window = paintWindow (); int visibleRegion = OS.gdk_drawable_get_visible_region (window); |