[gui] [PATCH] Fixes to TextComponent and TextArea
David Jee
djee@redhat.com
Wed Jun 9 22:37:00 GMT 2004
Hi,
I committed the following patch to the java-gui-branch. It fixes a
couple bugs related to TextComponent and TextArea. First, it makes sure
that the text cursor is set to the beginning of the text, to match Sun
AWT's behaviour.
It also eliminates an infinite feedback loop problem, where a call to
TextArea.repaint() will cause a GTK expose event, which results in a
call to TextArea.repaint() again. A mechanism to stop this type of
problem was already in place; TextArea just needed to be handled
separately.
-David Jee
2004-06-09 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
(GtkTextComponentPeer): Set caret position to 0.
* java/awt/TextComponent.java
(setText): Set caret position to 0.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
Handle GtkScrolledWindow separately. Fix signal handler blocking.
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
(Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
visible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextArea.patch
Type: text/x-patch
Size: 3902 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040609/2997a380/attachment.bin>
More information about the Java-patches
mailing list