diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index cc2c2ee516..6ad04bc531 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -671,6 +671,7 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar ) void wxFrame::UpdateMenuBarSize() { + int oldMenuBarHeight = m_menuBarHeight; m_menuBarHeight = 2; // this is called after Remove with a NULL m_frameMenuBar @@ -687,7 +688,8 @@ void wxFrame::UpdateMenuBarSize() } // resize window in OnInternalIdle - GtkUpdateSize(); + if (oldMenuBarHeight != m_menuBarHeight) + GtkUpdateSize(); } #endif // wxUSE_MENUS_NATIVE