X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9efd3f5bd29bc4d702a4f938b32dd9168f5043d..cb3db09022512bcbb6c6c41dd6859ab9245186a1:/include/wx/univ/window.h diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index 8e32e29618..65f24a8000 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -106,8 +106,6 @@ public: // NB: all menu related functions are implemented in menu.cpp #if wxUSE_MENUS - virtual bool DoPopupMenu(wxMenu *menu, int x, int y); - // this is wxUniv-specific private method to be used only by wxMenu void DismissPopupMenu(); #endif // wxUSE_MENUS @@ -187,7 +185,9 @@ protected: // common part of all ctors void Init(); - // overridden base class virtuals +#if wxUSE_MENUS + virtual bool DoPopupMenu(wxMenu *menu, int x, int y); +#endif // wxUSE_MENUS // we deal with the scrollbars in these functions virtual void DoSetClientSize(int width, int height);