This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui][patch] various fixes and initialWindow.setLocationRelativeTo implementation
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 09 Dec 2004 16:43:08 -0500
- Subject: [gui][patch] various fixes and initialWindow.setLocationRelativeTo implementation
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.