X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26c36d7505555ffb4b103780cba263693e0f2af9..74ebd40690d3676e74a7cfc239eee6c7e9764f05:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index ae37a7fbd8..923fb49e2d 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -16,10 +16,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "framebase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -527,16 +523,16 @@ void wxFrameBase::SetToolBar(wxToolBar *toolbar) // update all menus void wxFrameBase::DoMenuUpdates(wxMenu* menu) { - wxEvtHandler* source = GetEventHandler(); - wxMenuBar* bar = GetMenuBar(); - if (menu) + { + wxEvtHandler* source = GetEventHandler(); menu->UpdateUI(source); - else if ( bar != NULL ) + } + else { - int nCount = bar->GetMenuCount(); - for (int n = 0; n < nCount; n++) - bar->GetMenu(n)->UpdateUI(source); + wxMenuBar* bar = GetMenuBar(); + if (bar != NULL) + bar->UpdateMenus(); } } @@ -572,12 +568,3 @@ void wxFrameBase::SetMenuBar(wxMenuBar *menubar) } #endif // wxUSE_MENUS - -#if WXWIN_COMPATIBILITY_2_2 - -bool wxFrameBase::Command(int winid) -{ - return ProcessCommand(winid); -} - -#endif // WXWIN_COMPATIBILITY_2_2