X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd478a95098915942a1eb63963b1720362b0f6fe..dad6a47e6d425673510b53e9a01114cdea2a5f2c:/src/x11/utils.cpp diff --git a/src/x11/utils.cpp b/src/x11/utils.cpp index 0dedaec505..604a87e828 100644 --- a/src/x11/utils.cpp +++ b/src/x11/utils.cpp @@ -73,7 +73,7 @@ void wxFlushEvents() bool wxCheckForInterrupt(wxWindow *wnd) { - wxASSERT_MSG(FALSE, "wxCheckForInterrupt not yet implemented."); + wxASSERT_MSG(FALSE, wxT("wxCheckForInterrupt not yet implemented.")); return FALSE; } @@ -92,21 +92,24 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd) // ---------------------------------------------------------------------------- // Emit a beeeeeep +#ifndef __EMX__ +// on OS/2, we use the wxBell from wxBase library (src/os2/utils.cpp) void wxBell() { // Use current setting for the bell XBell ((Display*) wxGetDisplay(), 0); } +#endif -int wxGUIAppTraits::GetOSVersion(int *majorVsn, int *minorVsn) +wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() { - if (majorVsn) - *majorVsn = 0; - - if (minorVsn) - *minorVsn = 0; - - return wxX11; + static wxToolkitInfo info; + info.shortName = _T("x11univ"); + info.name = _T("wxX11"); + info.versionMajor = 0; + info.versionMinor = 0; + info.os = wxX11; + return info; } // ---------------------------------------------------------------------------- @@ -605,8 +608,7 @@ wxString wxGetXEventName(XEvent& event) "ClientMessage", "MappingNotify", // 33-34 "unknown(+)"}; // 35 type = wxMin(35, type); type = wxMax(1, type); - wxString str(event_name[type]); - return str; + return wxString::FromAscii(event_name[type]); #endif } #endif