+ else
+ {
+ m_menuBarHeight = 2;
+ GtkUpdateSize(); // resize window in OnInternalIdle
+ }
+}
+
+void wxFrame::UpdateMenuBarSize()
+{
+ wxASSERT_MSG( m_frameMenuBar, _T("Updating non existant menubar?") );
+
+ GtkRequisition req;
+
+ req.width = 2;
+ req.height = 2;
+
+ (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(m_frameMenuBar->m_widget) )->size_request )
+ (m_frameMenuBar->m_widget, &req );
+
+ m_menuBarHeight = req.height;
+
+ // resize window in OnInternalIdle