]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/artprov/arttest.cpp
Update configuration for OpenVMS
[wxWidgets.git] / samples / artprov / arttest.cpp
index 6d787932ddc25f0121450838eead90bf5176d26c..45c5d1f45f5bff99d78e7cd7fbe9026d5d9a23ca 100644 (file)
@@ -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();
 }