diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2003-09-19 19:27:59 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2003-09-19 19:27:59 +0000 |
commit | 5ec47f6049561ec52125da7f3e44ba269f9372ea (patch) | |
tree | ff7ca98acd33333b6e7381165d753e8f45b4876c /libjava/java/awt/Frame.java | |
parent | 9e3bfa9b751ba8eeb11c0494c29df532fe3f91cb (diff) | |
download | gcc-5ec47f6049561ec52125da7f3e44ba269f9372ea.zip gcc-5ec47f6049561ec52125da7f3e44ba269f9372ea.tar.gz gcc-5ec47f6049561ec52125da7f3e44ba269f9372ea.tar.bz2 |
GtkDialogPeer.java (create()): Create a top-level GTK window.
2003-09-19 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkDialogPeer.java (create()): Create a
top-level GTK window.
(getArgs): Add "title" property.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (setResizable): Use
"allow_shrink" and "allow_grow" properties.
* java/awt/Dialog.java: Initialize resizable to true and change
comments accordingly. Initialize visible to false in
constructors.
* java/awt/Frame.java (dispose): Remove method.
* java/awt/Window.java (ownedWindows): New field.
(Window(Window,GraphicsConfiguration)): Add a weak reference to
owner's ownedWindows vector.
(finalize): Remove method.
(hide): Hide owned windows.
(dispose): Dispose of owned windows.
(getOwnedWindows): Implement.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Remove
unused GtkArg code.
(set(String,boolean)): Clamp gboolean parameter to g_object_set
to TRUE or FALSE.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(create): Set window's size requisition.
(connectHooks): Fix indentation.
(setResizable): Remove function.
(static setBounds): Likewise.
(setBounds): Replace call to setBounds with GTK size requisition
and resize calls.
From-SVN: r71585
Diffstat (limited to 'libjava/java/awt/Frame.java')
-rw-r--r-- | libjava/java/awt/Frame.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libjava/java/awt/Frame.java b/libjava/java/awt/Frame.java index 1df9832..b6a3427 100644 --- a/libjava/java/awt/Frame.java +++ b/libjava/java/awt/Frame.java @@ -438,25 +438,6 @@ addNotify() /*************************************************************************/ /** - * Destroys any resources associated with this frame. This includes - * all components in the frame and all owned toplevel windows. - */ -public void -dispose() -{ - Enumeration e = ownedWindows.elements(); - while(e.hasMoreElements()) - { - Window w = (Window)e.nextElement(); - w.dispose(); - } - - super.dispose(); -} - -/*************************************************************************/ - -/** * Returns a debugging string describing this window. * * @return A debugging string describing this window. @@ -472,8 +453,6 @@ getFrames() { //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); - - // see finalize() comment String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); } |