[gui] [PATCH] PR AWT/17059 Fix MenuBar.setHelpMenu()

David Jee djee@redhat.com
Wed Aug 25 20:30:00 GMT 2004


Hello,

I committed the following patch to the java-gui-branch.  It fixes PR
AWT/17059, where MenuBar.setHelpMenu() was broken.

-David Jee

2004-08-23  David Jee  <djee@redhat.com>

        PR AWT/17059

        * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
        (nativeSetHelpMenu): New native method declaration.
        (addHelpMenu): Call nativeSetHelpMenu().
        (addMenu): Remove.
        * java/awt/MenuBar.java
        (setHelpMenu): Call addNotify() on the new help menu.
        (add): Call addNotify() on the new menu.
        (addNotify): Set the help menu if one exists.
        * java/awt/peer/MenuBarPeer.java
        (addMenu): Remove.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
        (nativeSetHelpMenu): New method.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: MenuBarHelpMenu.patch
Type: text/x-patch
Size: 3822 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040825/d1919d3e/attachment.bin>


More information about the Java-patches mailing list