Commit f2565037 by Kim Ho Committed by Kim Ho

GtkFramePeer.java (setMenuBar): Fix spacing.

2004-01-26  Kim Ho  <kho@redhat.com>

        * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
        Fix spacing.

From-SVN: r76730
parent 57e13917
2004-01-26 Kim Ho <kho@redhat.com> 2004-01-26 Kim Ho <kho@redhat.com>
* gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
Fix spacing.
2004-01-26 Kim Ho <kho@redhat.com>
* gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
method. method.
(setMenuBar): Shift the Gtk layout up/down by the MenuBar (setMenuBar): Shift the Gtk layout up/down by the MenuBar
......
...@@ -88,7 +88,7 @@ public class GtkFramePeer extends GtkWindowPeer ...@@ -88,7 +88,7 @@ public class GtkFramePeer extends GtkWindowPeer
setMenuBarPeer(menuBar); setMenuBarPeer(menuBar);
menuBarHeight = getMenuBarHeight (menuBar); menuBarHeight = getMenuBarHeight (menuBar);
if (oldHeight != menuBarHeight) if (oldHeight != menuBarHeight)
moveLayout(oldHeight-menuBarHeight); moveLayout(oldHeight - menuBarHeight);
insets.top += menuBarHeight; insets.top += menuBarHeight;
awtComponent.doLayout(); awtComponent.doLayout();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment