X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4597e138eff53fccbcb41259e8cb7ab2db3bab9..bbee1b4abc13379569607df8f6985ec68dc12231:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 7b067ddf0d..4bcb11d5d0 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -78,6 +78,11 @@ wxFrameBase::wxFrameBase() #endif // wxUSE_STATUSBAR } +wxFrameBase::~wxFrameBase() +{ + // this destructor is required for Darwin +} + wxFrame *wxFrameBase::New(wxWindow *parent, wxWindowID id, const wxString& title, @@ -147,7 +152,7 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const { wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin(); -#if wxUSE_TOOLBAR +#if wxUSE_TOOLBAR && !defined(__WXUNIVERSAL__) wxToolBar *toolbar = GetToolBar(); if ( toolbar && toolbar->IsShown() ) { @@ -404,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar) { if ( menubar ) { - m_frameMenuBar = menubar; menubar->Attach((wxFrame *)this); + m_frameMenuBar = menubar; } }