X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f4d35b8045442f97ed74ba2aa633e843adae7ef..44c87b7d15d5c1f5926beffa4cd5c9d1d2045e04:/samples/artprov/arttest.cpp diff --git a/samples/artprov/arttest.cpp b/samples/artprov/arttest.cpp index 6d787932dd..45c5d1f45f 100644 --- a/samples/artprov/arttest.cpp +++ b/samples/artprov/arttest.cpp @@ -96,6 +96,9 @@ IMPLEMENT_APP(MyApp) // 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // create the main application window MyFrame *frame = new MyFrame(_T("wxArtProvider sample"), wxPoint(50, 50), wxSize(450, 340)); @@ -216,7 +219,7 @@ void MyFrame::OnBrowser(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnPlugProvider(wxCommandEvent& event) { if ( event.IsChecked() ) - wxArtProvider::PushProvider(new MyArtProvider); + wxArtProvider::Push(new MyArtProvider); else - wxArtProvider::PopProvider(); + wxArtProvider::Pop(); }