Browse Source

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 <jb@videolan.org>
pull/39/head
Mariusz Wasak 10 years ago
committed by Jean-Baptiste Kempf
parent
commit
5b526dae4c
  1. 4
      doc/libvlc/wx_player.cpp

4
doc/libvlc/wx_player.cpp

@ -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() {

Loading…
Cancel
Save