diff options
author | Silenio Quarti <silenio> | 2002-03-18 17:23:39 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-03-18 17:23:39 +0000 |
commit | 32e3f63cbd1057feae4c4436db81e59de021daf6 (patch) | |
tree | 7914aafd65954295d8c59bf624781815d85cea06 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java | |
parent | 81b69e387cdd58484952ce2e04785a8dfecf0969 (diff) | |
download | eclipse.platform.swt-32e3f63cbd1057feae4c4436db81e59de021daf6.tar.gz eclipse.platform.swt-32e3f63cbd1057feae4c4436db81e59de021daf6.tar.xz eclipse.platform.swt-32e3f63cbd1057feae4c4436db81e59de021daf6.zip |
*** empty log message ***
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 | 4 |
1 files changed, 2 insertions, 2 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 ae94ecf618..9284802004 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 @@ -134,7 +134,7 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b int gc = OS.gdk_gc_new (window); OS.gdk_gc_set_exposures(gc, true); OS.gdk_window_copy_area (window, gc, x, y, window, x, y, width, height); - OS.gdk_gc_destroy (gc); + OS.g_object_unref (gc); /* Flush outstanding Exposes */ int eventHandle=0; @@ -147,7 +147,7 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b int gc1 = OS.gdk_gc_new (window); OS.gdk_gc_set_exposures(gc1, true); OS.gdk_window_copy_area (window, gc1, destX, destY, window, x, y, width, height); - OS.gdk_gc_destroy (gc1); + OS.g_object_unref (gc1); boolean disjoint = (destX + width < x) || (x + width < destX) || (destY + height < y) || (y + height < destY); if (disjoint) { OS.gdk_window_clear_area(window, x, y, width, height); |