[gui] [PATCH] Fix List peer's native getSize() method
David Jee
djee@redhat.com
Tue May 25 16:09:00 GMT 2004
Hello,
I committed the following patch to the java-gui-branch. It fixes List
peer's native getSize() method, so that it properly queries for the
widget's natural size. The patch also fixes a bug in GtkComponentPeer's
constructor, which was preventing component peers from receiving
setBounds() calls.
-David Jee
2004-05-25 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(GtkComponentPeer): Set bounds regardless of whether awtComponent
is valid.
* gnu/java/awt/peer/gtk/GtkListPeer.java
(getSize): Change native method declaration.
(minimumSize): Pass visible row count into getSize().
(preferredSize): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
(Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
natural size. Use visible row count to determine the final height
value to return.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SetBoundsRegFix.patch
Type: text/x-patch
Size: 4246 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040525/2f50583c/attachment.bin>
More information about the Java-patches
mailing list