1. deprecate redundantly sounding wxArtProvider::FooProvider() to just Foo()

2. wxArtProvider::Remove() now really only removes the provider without
   deleting it, Delete() does delete it
3. moreover, ~wxArtProvider removes the provider as well so there is almost
   no need to call Delete() explicitly any more


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-09-23 20:16:18 +00:00
parent 43e995b6e3
commit 571d2e0f23
10 changed files with 150 additions and 43 deletions

View File

@@ -216,7 +216,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();
}