Patch: TextArea size fixes
Thomas Fitzsimmons
fitzsim@redhat.com
Sat Dec 20 20:10:00 GMT 2003
Hello,
This patch fixes GtkTextAreaPeer's size calculation, which should depend
on average character width/height and the number of rows and columns to
be displayed. This patch has a small dependency on Graydon's Graphics2D
patch.
I've also written a test for TextArea sizing that I'm going to commit to
the mauve wonka module.
OK to commit?
Tom
2003-12-20 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
Add rows, cols, charWidth and charHeight parameters. Set
text view's size request according to new parameters.
(gtkTextGetSize): Calculate and return scrolled window's
requested size.
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
TextArea's font if not already set. Call native create.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textareapeer.patch
Type: text/x-patch
Size: 3388 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031220/1122bc23/attachment.bin>
More information about the Java-patches
mailing list