gcc/libjava/gnu/java
Kim Ho 2c20a17152 GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter.
2004-01-19  Kim Ho  <kho@redhat.com>

        * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
        MenuBarPeer parameter.
        (removeMenuBarPeer): New native method.
        (setMenuBar): Call remove if menu bar is null. Adjust insets
        appropriately.
        (postSizeAllocateEvent): New method. Called when menu bar size is
        allocated. Adjust insets and redo layout.
        (GtkFramePeer): Set menu bar during frame creation.
        (postConfigureEvent): Adjust position and size to accomodate
        menu bar.
        * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
        * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
        (addNotify): Create the peer if it doesn't exist and call addNotify
        for the menu's items.
        * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
        * java/awt/MenuItem.java (addNotify): Create the peer if it
        doesn't exist.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
        (removeMenuBarPeer): New method. Remove menu bar on the current
        frame.
        (setMenuBarPeer): Add the menu bar to the current frame and the
        callback for size-allocate events on the menu bar.
        (getMenuBarHeight): Add menu bar parameter.
        (menubar_resize_cb): New callback method for postSizeAllocate events.

        Also: Fix indentation on last ChangeLog entry.

From-SVN: r76149
2004-01-19 14:27:45 +00:00
..
awt GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter. 2004-01-19 14:27:45 +00:00
beans IntrospectionIncubator.java (addMethod): Add public static methods. 2003-10-29 15:22:01 +00:00
io
lang 2004-01-11 Michael Koch <konqueror@gmx.de> 2004-01-11 14:07:36 +00:00
locale 2003-07-13 Michael Koch <konqueror@gmx.de> 2003-07-13 15:00:20 +00:00
math
net Connection.java: Reformated copyright. 2004-01-06 15:00:11 +00:00
nio 2004-01-07 Michael Koch <konqueror@gmx.de> 2004-01-07 16:51:49 +00:00
rmi 2003-12-26 Guilhem Lavaux <guilhem@kaffe.org> 2003-12-26 16:13:01 +00:00
security ProtocolConstants.java, DER.java: Removing redundant modifiers. 2003-10-11 18:56:54 +00:00
text
util