[PATCH]: Fixes to AWT List
Fernando Nasser
fnasser@redhat.com
Mon Dec 1 23:47:00 GMT 2003
This patch fixes many problems in the AWT List widget. It became usable now.
Many thanks to Thomas Fitzsimmons as without his help I would not be able to
come up with these fixes.
Regards to all,
Fernando
2003-12-01 Fernando Nasser <fnasser@redhat.com>
* gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): New
method. Handle mouse and key events that must generate
ActionEvents.
* java/awt/List.java (getSelectedIndex): Return -1
if no list element is selected.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler):
Correct handling of mouse and key events so that List receives them.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
(Java_gnu_java_awt_peer_gtk_GtkListPeer_delItems): Fix removal of
multiple list elements.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LISTFIXES.PATCH
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031201/39baf573/attachment.ksh>
More information about the Java-patches
mailing list