Patch: Window and Dialog fixes
Thomas Fitzsimmons
fitzsim@redhat.com
Thu Sep 4 16:57:00 GMT 2003
Hello,
This patch does several related things:
- implements Window ownership
- fixes Frame and Dialog resizing
- removes some unused GtkArg code
With this patch, non-modal dialogs come up and are usable. The
following issues still need to be addressed though:
- show/hide rules for dialogs and sub-dialogs
- modality
- window events
- program-controlled movement of windows
- stacking order
Please review and comment.
Thanks,
Tom
2003-09-04 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: Move owned windows logic to ...
* java/awt/Window.java (ownedWindows, owner, weakThis): New
fields.
(Window()): Initialize weakThis to this.
(Window(Window,GraphicsConfiguration)): Add weakThis to owner's
ownedWindows vector.
(finalize): Remove weakThis from owner's ownedWindows vector.
(hide): Hide owned windows as well.
(dispose): Dispose of owned windows as well.
(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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog.diff
Type: text/x-patch
Size: 17850 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030904/678e263d/attachment.bin>
More information about the Java-patches
mailing list