Patch: Make AWT Frame respect its initial size setting
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Aug 27 11:07:00 GMT 2003
Hello,
AWT Frames backed by the GTK peers were not respecting their initial
size settings. This patch fixes the problem. It also makes Frames
invisible upon construction to match the behaviour described in Sun's
documentation.
Please review and comment.
Thanks,
Tom
2003-08-26 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Add width
and height arguments to GtkWindowPeer.create method call.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(create(int,int,int)): New method.
(create(int)): Add call to new create method.
(create()): Add width and height arguments to create method
call.
(GtkWindowPeer): Remove call to setBounds.
* java/awt/Frame.java (Frame(String)): Initialize visible field
to false.
(Frame(GraphicsConfiguration)): Likewise.
(Frame(String,GraphicsConfiguration)): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
Add width and height parameters. Call
gtk_window_set_default_size.
(connectHooks): Remove unused name variable.
(static setBounds): Call gtk_window_resize not
gtk_widget_set_usize.
(setBounds): Remove unused nchildren variable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winresize.diff
Type: text/x-patch
Size: 5410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030827/875498b0/attachment.bin>
More information about the Java-patches
mailing list