X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416681d9dc94486d605fd735702dc0678590d28..6a89f9ee4212a2268df1a7ed97145944e937fa0f:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 1906077d27..414390d351 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "event.h" #endif @@ -304,16 +304,6 @@ int wxNewEventType() // MT-FIXME static int s_lastUsedEventType = wxEVT_FIRST; -#if WXWIN_COMPATIBILITY_2 - // check that we don't overlap with the user-defined types: if it does - // happen, the best solution is probably to update the existing code to - // use wxNewEventType() instead of wxEVT_USER_FIRST - // - // due to the uncertainty - wxASSERT_MSG( s_lastUsedEventType < wxEVT_USER_FIRST - 1, - _T("possible event type conflict") ); -#endif // WXWIN_COMPATIBILITY_2 - return s_lastUsedEventType++; } @@ -390,7 +380,7 @@ long wxUpdateUIEvent::sm_updateInterval = 0; wxUpdateUIMode wxUpdateUIEvent::sm_updateMode = wxUPDATE_UI_PROCESS_ALL; // Can we update? -bool wxUpdateUIEvent::CanUpdate(wxWindow* win) +bool wxUpdateUIEvent::CanUpdate(wxWindowBase *win) { // Don't update if we've switched global updating off // and this window doesn't support updates. @@ -1107,10 +1097,8 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event) { // if we have a validator, it has higher priority than our own event // table -#if wxUSE_VALIDATORS if ( TryValidator(event) ) return TRUE; -#endif // wxUSE_VALIDATORS // Handle per-instance dynamic event tables first if ( m_dynamicEvents && SearchDynamicEventTable(event) ) @@ -1323,17 +1311,6 @@ void *wxEvtHandler::DoGetClientData() const return m_clientData; } - -#if WXWIN_COMPATIBILITY -bool wxEvtHandler::OnClose() -{ - if (GetNextHandler()) - return GetNextHandler()->OnClose(); - else - return FALSE; -} -#endif // WXWIN_COMPATIBILITY - #endif // wxUSE_BASE #if wxUSE_GUI