Patch: PR 17952
Thomas Fitzsimmons
fitzsim@redhat.com
Mon Feb 21 08:28:00 GMT 2005
Hi,
This fixes PR 17952. We were trying to retrieve frame extents
properties from an X window before it had been realized. This patch
moves window size setup into the window's realize callback.
OK to commit?
Tom
2005-02-20 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/17952:
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(getWidth): New method.
(getHeight): Likewise.
(create): Remove width, height and insets parameters. Move size
setup ...
(realize_cb): ... here. New function.
(connectSignals): Connect realize_cb.
(request_frame_extents): Remove FIXME. Move
postInsetsChangedEvent lookup ...
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (gtkInit):
... here. Look up GtkWindowPeer getWidth and getHeight methods.
* jni/gtk-peer/gtkpeer.h (postInsetsChangedEventID): Declare
jmethodID.
(windowGetWidthID): Likewise.
(windowGetHeightID): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peer-window-realize-size.patch
Type: text/x-patch
Size: 8306 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050221/734cba55/attachment.bin>
More information about the Java-patches
mailing list