Patch: TextArea size fixes

Thomas Fitzsimmons
Sat Dec 20 20:10:00 GMT 2003


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

I've also written a test for TextArea sizing that I'm going to commit to
the mauve wonka module.

OK to commit?


2003-12-20  Thomas Fitzsimmons  <>

	* gnu/java/awt/peer/gtk/,
	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/ (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: <>

More information about the Java-patches mailing list