From: Vadim Zeitlin Date: Sun, 24 Feb 2013 13:48:26 +0000 (+0000) Subject: Fix compilation in !wxUSE_MENUS case. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/de6e6d08b2e3fa0c5083d9755dd2e00b5cceb414?ds=inline Fix compilation in !wxUSE_MENUS case. wxFrameBase::ShouldUpdateMenuFromIdle() should be defined inside "#if wxUSE_MENUS" as it's only declared when wxUSE_MENUS==1. Closes #15062. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index f050c1eb84..3e96a8291b 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -41,15 +41,16 @@ extern WXDLLEXPORT_DATA(const char) wxStatusLineNameStr[] = "status_line"; // event table // ---------------------------------------------------------------------------- -#if wxUSE_MENUS && wxUSE_STATUSBAR +#if wxUSE_MENUS + +#if wxUSE_STATUSBAR BEGIN_EVENT_TABLE(wxFrameBase, wxTopLevelWindow) EVT_MENU_OPEN(wxFrameBase::OnMenuOpen) EVT_MENU_CLOSE(wxFrameBase::OnMenuClose) EVT_MENU_HIGHLIGHT_ALL(wxFrameBase::OnMenuHighlight) END_EVENT_TABLE() - -#endif // wxUSE_MENUS && wxUSE_IDLEMENUUPDATES +#endif // wxUSE_STATUSBAR /* static */ bool wxFrameBase::ShouldUpdateMenuFromIdle() @@ -67,6 +68,8 @@ bool wxFrameBase::ShouldUpdateMenuFromIdle() return wxUSE_IDLEMENUUPDATES != 0; } +#endif // wxUSE_MENUS + // ============================================================================ // implementation // ============================================================================