Patch: PR 17952

Thomas Fitzsimmons
Mon Feb 21 08:28:00 GMT 2005


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?

2005-02-20  Thomas Fitzsimmons  <>

	PR libgcj/17952:
	* gnu/java/awt/peer/gtk/,
	(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
	(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: <>

More information about the Java-patches mailing list