diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2003-12-01 23:27:06 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2003-12-01 23:27:06 +0000 |
commit | bb9cfd00626b99a5d7cd770c91093ea27a907f84 (patch) | |
tree | 8a7545fe64ae4d6770cccce7985ada370781ff0b /libjava/jni | |
parent | bebae710416686208af2ffecff3fbaa650404d5a (diff) | |
download | gcc-bb9cfd00626b99a5d7cd770c91093ea27a907f84.zip gcc-bb9cfd00626b99a5d7cd770c91093ea27a907f84.tar.gz gcc-bb9cfd00626b99a5d7cd770c91093ea27a907f84.tar.bz2 |
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Hard-code inset values.
From-SVN: r74136
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c index 563492a..74939f8 100644 --- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c +++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c @@ -1022,8 +1022,6 @@ awt_event_handler (GdkEvent *event) if (widget && GTK_WIDGET_TOPLEVEL (widget)) { gint top, left, right, bottom; - gint x, y, w, h, d; - GdkRectangle r; /* Configure events are not posted to the AWT event queue, and as such, the gdk/gtk peer functions will @@ -1031,20 +1029,11 @@ awt_event_handler (GdkEvent *event) returns. */ gdk_threads_leave (); - /* Calculate our insets. */ - - /* When called from within the gdk_threads critical - section these functions seem to return strange - results, so we call them after - gdk_threads_leave. */ - gdk_window_get_geometry (event->any.window, - &x, &y, &w, &h, &d); - gdk_window_get_frame_extents (event->any.window, &r); - - top = y; - left = x; - bottom = r.height - h - y; - right = r.width - w - x; + /* FIXME: hard-code these values for now. */ + top = 20; + left = 6; + bottom = 6; + right = 6; (*gdk_env)->CallVoidMethod (gdk_env, *event_obj_ptr, postConfigureEventID, |