[gui][PATCH] GtkTextFieldPeer: fix PR 16680

Thomas Fitzsimmons fitzsim@redhat.com
Tue Jul 27 21:12:00 GMT 2004


Hi,

TextField colours weren't being set properly and TextFields that should
have been uneditable were editable.  This patch fixes the problems.

Committed to java-gui-branch.

Tom

2004-07-26  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
	variable in setEditable call.

	* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
	(gtkWidgetSetBackground): New method.
	(gtkWidgetSetForeground): Likewise.
	(create): Set peer's editable state based on awtComponent's.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: awt-text-field-colors.patch
Type: text/x-patch
Size: 2579 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040727/ad210bcb/attachment.bin>


More information about the Java-patches mailing list