Use Bind() instead of Connect() in wxWidgets code

Use more modern function which allows to avoid wxXXXEventHandler()
macros use.

No real changes.
This commit is contained in:
Vadim Zeitlin
2018-05-28 22:10:56 +02:00
parent 8c8ff2c24d
commit d4f380e16e
48 changed files with 168 additions and 363 deletions

View File

@@ -205,8 +205,8 @@ class wxGStreamerMediaEventHandler : public wxEvtHandler
public:
wxGStreamerMediaEventHandler(wxGStreamerMediaBackend* be) : m_be(be)
{
this->Connect(wxID_ANY, wxEVT_MEDIA_FINISHED,
wxMediaEventHandler(wxGStreamerMediaEventHandler::OnMediaFinish));
this->Bind(wxEVT_MEDIA_FINISHED,
&wxGStreamerMediaEventHandler::OnMediaFinish, this);
}
void OnMediaFinish(wxMediaEvent& event);