[gui] [PATCH] Migrate java.awt.Choice native peer to GtkComboBox

David Jee djee@redhat.com
Wed Jul 28 01:05:00 GMT 2004


Hello,

I committed the following patch to the java-gui-branch.  It migrates the
native peer of java.awt.Choice from GtkOptionMenu to the new
GtkComboBox.

-David Jee

2004-07-26  David Jee  <djee@redhat.com>

        * gnu/java/awt/peer/gtk/GtkChoicePeer.java
        (GtkChoicePeer): Do not automatically select first item.
        (getHistory): Remove.
        (nativeGetSelected): New method.
        (nativeRemoveAll): New method.
        (add): Use nativeGetSelected() instead of getHistory().
        (remove): Likewise.
        (removeAll): Call nativeRemoveAll().
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
        (create): Migrate to GtkComboBox.
        (append): Likewise.
        (nativeAdd): Likewise.
        (nativeRemove): Likewise.
        (select): Likewise.
        (nativeRemoveAll): New method.
        (nativeGetSelected): New method.
        (selection_changed): New method.
        (getHistory): Remove.
        (item_activate): Remove.
        (item_removed): Remove.
        (connect_choice_item_selectable_hook): Remove.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: GtkChoicePeer1.patch
Type: text/x-patch
Size: 10520 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040728/206bce69/attachment.bin>


More information about the Java-patches mailing list