diff options
author | Silenio Quarti <silenio> | 2002-03-14 18:49:06 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-03-14 18:49:06 +0000 |
commit | 1942f64e0b774317e0a8e6ec44902bb736bb7790 (patch) | |
tree | 242666999842019466c39a09168fa86e1075505e /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java | |
parent | 48512dc20e32e369917d3e1ccfb92109c9724e7e (diff) | |
download | eclipse.platform.swt-1942f64e0b774317e0a8e6ec44902bb736bb7790.tar.gz eclipse.platform.swt-1942f64e0b774317e0a8e6ec44902bb736bb7790.tar.xz eclipse.platform.swt-1942f64e0b774317e0a8e6ec44902bb736bb7790.zip |
Merge to GTK2 stream
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java index 85c62c27b7..68a74a8f3f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java @@ -88,9 +88,7 @@ boolean drawCaret () { /* The parent is a Canvas; its handle is a GtkDrawingArea. * Get the DA's GDK window to draw on. */ - GtkWidget widget = new GtkWidget(); - OS.memmove (widget, parent.handle, GtkWidget.sizeof); - int window = widget.window; + int window = OS.GTK_WIDGET_WINDOW(parent.handle); /* Create the GC, and set the working color and rop. */ int gc = OS.gdk_gc_new(window); |