[gui][patch] various fixes and initial Window.setLocationRelativeTo implementation

Thomas Fitzsimmons fitzsim@redhat.com
Thu Dec 9 21:49:00 GMT 2004


Hi,

I committed this to java-gui-branch.  It prevents posting certain events
to components that are not showing -- without the patch, components were
being painted multiple times when they were first shown.

The patch also contains an initial implementation of
Window.setLocationRelativeTo and some other small fixes.

Tom

2004-12-08  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GdkGraphics.java (setClip): Protect
	against null clip region.
	* gnu/java/awt/peer/gtk/GtkFramePeer.java (create): Call
	gtkWindowSetResizable.
	(postConfigureEvent): Only revalidate if frame size has changed.
	* gnu/java/awt/peer/gtk/GtkWindowPeer.java (postConfigureEvent):
	Only revalidate if frame size has changed.
	* java/awt/Component.java (reshape): Only repaint and post
	component events if component is showing.
	* java/awt/Container.java (addImpl): Only post container event if
	container is showing.
	(remove): Likewise.
	* java/awt/Window.java (setLocationRelativeTo): Implement.
	(setBoundsCallback): Only post component events if component is
	showing.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (clearRect):
	Protect against null graphics structure.  Flush gdk event queue.




More information about the Java-patches mailing list