[gui] [PATCH] Fix FileDialog's initial size
David Jee
djee@redhat.com
Fri Jul 23 05:38:00 GMT 2004
Hello,
I committed the following patch to the java-gui-branch. It fixes
FileDialog's initial size, which was too small. Previously, we set the
initial size of the FileDialog peer by using its "natural" requisition.
However, this caused the dialog to have the absolute minimum size
possible, which doesn't give much room to browse and select files.
The patch sets the dialog's initial size by calling
gtk_window_get_default_size() on the GtkFileChooserDialog widget. This
produces a better initial size with plenty of space.
-David Jee
2004-07-21 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
setting the size of GtkFileDialogPeers.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
use their default sizes rather than their natural requisitions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileDialog3.patch
Type: text/x-patch
Size: 2863 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040723/6aea44f1/attachment.bin>
More information about the Java-patches
mailing list