#include "wx/frame.h"
#ifndef WX_PRECOMP
+ #include "wx/app.h"
#include "wx/menu.h"
#include "wx/menuitem.h"
#include "wx/dcclient.h"
// 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()
// check if we're using the global menu bar as we don't get EVT_MENU_OPEN
// for it and need to fall back to idle time updating even if normally
// wxUSE_IDLEMENUUPDATES is set to 0 for wxGTK.
-#ifdef __WXGTK__
+#ifdef __WXGTK20__
if ( wxApp::GTKIsUsingGlobalMenu() )
return true;
#endif // !__WXGTK__
return wxUSE_IDLEMENUUPDATES != 0;
}
+#endif // wxUSE_MENUS
+
// ============================================================================
// implementation
// ============================================================================