On Fri, 2006-02-17 at 14:34 -0500, Lillian Angel wrote:
> 2006-02-17 Lillian Angel <[EMAIL PROTECTED]>
>
> * gnu/java/awt/peer/gtk/GtkComponentPeer.java
> (setBounds): Removed check. Coordinates should always be changed
> to incorporate the parent's coordinates.
> * gnu/java/awt/peer/gtk/GtkFramePeer.java
> (setMenuBar): Added checks. Don't validate component if it has
> not been validated yet, it will be validated later. Only
> validate if it has already been validated, in that case it
> needs to be revalidated.
> * java/awt/Window.java
> (show): Added check. If the window is visible, then bring it to
> the front. Otherwise, iterate through all its children windows
> and show them. No need to do both.
A change I made in Window.show() caused some problems. I fixed this.
2006-02-20 Lillian Angel <[EMAIL PROTECTED]>
* java/swt/Window.java
(show): Calling show() on the owned windows caused problems.
Changed back to get the peer and call setVisible.
Index: java/awt/Window.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/Window.java,v
retrieving revision 1.64
diff -u -r1.64 Window.java
--- java/awt/Window.java 17 Feb 2006 19:24:53 -0000 1.64
+++ java/awt/Window.java 20 Feb 2006 14:38:21 -0000
@@ -299,7 +299,10 @@
{
Window w = (Window) (((Reference) e.next()).get());
if (w != null)
- w.show();
+ {
+ if (w.isVisible())
+ w.getPeer().setVisible(true);
+ }
else
// Remove null weak reference from ownedWindows.
// Unfortunately this can't be done in the Window's