X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/578dc95029e761a59911b7c1bc09f59384d64ddf..02ac8d7a5ddbd0694b46cc5133e82eb22d935829:/include/wx/mac/menu.h diff --git a/include/wx/mac/menu.h b/include/wx/mac/menu.h index e71cf26809..c401f7f140 100644 --- a/include/wx/mac/menu.h +++ b/include/wx/mac/menu.h @@ -46,14 +46,6 @@ public: // MSW-specific bool ProcessCommand(wxCommandEvent& event); -#if WXWIN_COMPATIBILITY - wxMenu(const wxString& title, const wxFunction func) - : wxMenuBase(title) - { - Callback(func); - } -#endif // WXWIN_COMPATIBILITY - // implementation only from now on // ------------------------------- @@ -164,6 +156,8 @@ public: void MacInstallMenuBar() ; static wxMenuBar* MacGetInstalledMenuBar() { return s_macInstalledMenuBar ; } + static void MacSetCommonMenuBar(wxMenuBar* menubar) { s_macCommonMenuBar=menubar; } + static wxMenuBar* MacGetCommonMenuBar() { return s_macCommonMenuBar; } protected: // common part of all ctors @@ -178,6 +172,7 @@ protected: private: static wxMenuBar* s_macInstalledMenuBar ; + static wxMenuBar* s_macCommonMenuBar ; DECLARE_DYNAMIC_CLASS(wxMenuBar) };