gcc/libjava/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
..
applet AppletContext.java: Fix typo and remove redundant modifiers. 2002-11-14 20:35:27 +00:00
awt GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter. 2004-01-19 14:27:45 +00:00
beans BeanDescriptor.java, [...]: Explicitely import used classes. 2003-12-04 19:36:13 +00:00
io 2004-01-09 Michael Koch <konqueror@gmx.de> 2004-01-09 08:58:59 +00:00
lang natClassLoader.cc: Moved VMClassLoader methods... 2004-01-16 23:54:22 +00:00
math Font.java, [...]: Removed some redundant obj == null checks. 2003-11-11 12:22:20 +00:00
net ServerSocket.java (isBound): Fixed documentation. 2004-01-07 16:37:45 +00:00
nio 2004-01-07 Michael Koch <konqueror@gmx.de> 2004-01-07 16:51:49 +00:00
rmi Naming.java (lookup): Check if the first character of the filename returned by URL.getFile() is a '/'... 2003-12-26 23:23:55 +00:00
security Security.java: Don't use &nbsp; in the api doc. 2003-12-02 17:31:46 +00:00
sql Font.java, [...]: Removed some redundant obj == null checks. 2003-11-11 12:22:20 +00:00
text re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions) 2004-01-14 19:45:11 +00:00
util 2004-01-09 Michael Koch <konqueror@gmx.de> 2004-01-09 08:58:59 +00:00