X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe828a03f46181cc172bf61739fe09a043f73aea..741cca6b380ccacd162d1c662b6063021c8ee3ee:/utils/helpview/src/helpview.cpp?ds=sidebyside diff --git a/utils/helpview/src/helpview.cpp b/utils/helpview/src/helpview.cpp index 72b3daa6a3..bbb44a061d 100644 --- a/utils/helpview/src/helpview.cpp +++ b/utils/helpview/src/helpview.cpp @@ -57,7 +57,7 @@ bool hvApp::OnInit() wxArtProvider::Push(new AlternateArtProvider); -#ifdef __WXMAC__ +#if defined( __WXOSX_MAC__ ) && wxOSX_USE_CARBON wxApp::s_macAboutMenuItemId = wxID_ABOUT; wxFileName::MacRegisterDefaultTypeAndCreator( wxT("htb") , 'HTBD' , 'HTBA' ) ; #endif @@ -407,14 +407,12 @@ hvConnection::~hvConnection() wxGetApp().GetConnections().DeleteObject(this); } -bool hvConnection::OnExecute(const wxString& WXUNUSED(topic), - wxChar *data, - int WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) +bool hvConnection::OnExec(const wxString& WXUNUSED(topic), + const wxString& data) { // wxLogStatus("Execute command: %s", data); - if ( !wxStrncmp( data, wxT("--intstring"), 11 ) ) + if ( data == "--intstring" ) { long i; wxString argStr = data; @@ -438,10 +436,12 @@ bool hvConnection::OnExecute(const wxString& WXUNUSED(topic), bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), const wxString& item, - wxChar *data, - int WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) + const void *buf, + size_t size, + wxIPCFormat format) { + const wxString data = GetTextFromData(buf, size, format); + // wxLogStatus("Poke command: %s = %s", item.c_str(), data); //topic is not tested @@ -488,18 +488,4 @@ bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), return true; } -wxChar *hvConnection::OnRequest(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item), - int * WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) -{ - return NULL; -} - -bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item)) -{ - return true; -} - #endif // #if wxUSE_IPC