X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/426d19f1391a685de14a71b9fc4339bb929e441a..6f0b6fd1e4b5b2633e1f34c54c8d4f4e5da98637:/src/gtk/frame.cpp diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index 159565870c..05635a131e 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -83,7 +83,9 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const { GtkRequisition req; gtk_widget_size_request(m_frameMenuBar->m_widget, &req); +#if !wxUSE_LIBHILDON && !wxUSE_LIBHILDON2 *height -= req.height; +#endif } #endif // wxUSE_MENUS_NATIVE @@ -279,8 +281,6 @@ void wxFrame::DetachMenuBar() #if wxUSE_LIBHILDON || wxUSE_LIBHILDON2 hildon_window_set_menu(HILDON_WINDOW(m_widget), NULL); #else // !wxUSE_LIBHILDON && !wxUSE_LIBHILDON2 - m_frameMenuBar->UnsetInvokingWindow( this ); - gtk_widget_ref( m_frameMenuBar->m_widget ); gtk_container_remove( GTK_CONTAINER(m_mainWidget), m_frameMenuBar->m_widget ); @@ -303,8 +303,6 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar ) hildon_window_set_menu(HILDON_WINDOW(m_widget), GTK_MENU(m_frameMenuBar->m_menubar)); #else // !wxUSE_LIBHILDON && !wxUSE_LIBHILDON2 - m_frameMenuBar->SetInvokingWindow( this ); - m_frameMenuBar->SetParent(this); // menubar goes into top of vbox (m_mainWidget)