X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a7c760593b9774dc06e6824ad52058b770ba65a..e736b21a8c9295b42a528d76863559a4265dab02:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 2091e12a70..706c1c97c8 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -277,6 +277,19 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event)) return -1; } +#if wxUSE_EXCEPTIONS + +void +wxAppConsole::HandleEvent(wxEvtHandler *handler, + wxEventFunction func, + wxEvent& event) const +{ + // by default, simply call the handler + (handler->*func)(event); +} + +#endif // wxUSE_EXCEPTIONS + // ---------------------------------------------------------------------------- // cmd line parsing // ---------------------------------------------------------------------------- @@ -371,10 +384,10 @@ bool wxAppConsole::CheckBuildOptions(const char *optionsSignature, wxString prog = wxString::FromAscii(optionsSignature); wxString progName = wxString::FromAscii(componentName); wxString msg; - - msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s, and %s used %s."), + + msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."), lib.c_str(), progName.c_str(), prog.c_str()); - + wxLogFatalError(msg); // normally wxLogFatalError doesn't return @@ -392,7 +405,7 @@ void wxAppConsole::OnAssert(const wxChar *file, const wxChar *cond, const wxChar *msg) { - ShowAssertDialog(file, line, cond, msg, m_traits); + ShowAssertDialog(file, line, cond, msg, GetTraits()); } #endif // __WXDEBUG__ @@ -457,6 +470,13 @@ void wxConsoleAppTraitsBase::RemoveFromPendingDelete(wxObject * WXUNUSED(object) // nothing to do } +#if wxUSE_SOCKETS +GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable() +{ + return NULL; +} +#endif + // ---------------------------------------------------------------------------- // wxAppTraits // ---------------------------------------------------------------------------- @@ -526,7 +546,7 @@ void wxAssert(int cond, const wxChar *szFile, int nLine, const wxChar *szCond, - const wxChar *szMsg) + const wxChar *szMsg) { if ( !cond ) wxOnAssert(szFile, nLine, szCond, szMsg);