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
This commit is contained in:
parent
9e3bfa9b75
commit
5ec47f6049
9 changed files with 158 additions and 129 deletions
|
@ -437,25 +437,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.
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue