Commit 5b526dae authored by Mariusz Wasak's avatar Mariusz Wasak Committed by Jean-Baptiste Kempf

Making access to wxWindow::AddPendingEvent in example.

AddPendingEvent is protected in wxWindow so orignial example code don't compile. Access to this method should be made by using wxWindow::GetEventHandler()
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 933424d7
......@@ -247,12 +247,12 @@ class MyApp : public wxApp {
void OnPositionChanged_VLC(const libvlc_event_t *event, void *data) {
wxCommandEvent evt(vlcEVT_POS, wxID_ANY);
mainWindow->AddPendingEvent(evt);
mainWindow->GetEventHandler()->AddPendingEvent(evt);
}
void OnEndReached_VLC(const libvlc_event_t *event, void *data) {
wxCommandEvent evt(vlcEVT_END, wxID_ANY);
mainWindow->AddPendingEvent(evt);
mainWindow->GetEventHandler()->AddPendingEvent(evt);
}
bool MyApp::OnInit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment