diff --git a/include/wx/artprov.h b/include/wx/artprov.h index 6caafc3b47..c45ad59d22 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -122,6 +122,10 @@ public: // Add new provider to the bottom of providers stack (i.e. the provider // will be queried as the last one). +#if wxABI_VERSION >= 20810 + static void PushBack(wxArtProvider *provider); +#endif + // same as PushBack() static void Insert(wxArtProvider *provider); // Remove latest added provider and delete it. diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 6d0a4e88d9..d94966fe8a 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -139,6 +139,11 @@ wxArtProvider::~wxArtProvider() sm_providers->Append(provider); } +/*static*/ void wxArtProvider::PushBack(wxArtProvider *provider) +{ + Insert(provider); +} + /*static*/ bool wxArtProvider::Pop() { wxCHECK_MSG( sm_providers, false, _T("no wxArtProvider exists") ); diff --git a/version-script.in b/version-script.in index dbb63c669d..b76a7c2570 100644 --- a/version-script.in +++ b/version-script.in @@ -25,6 +25,7 @@ # public symbols added in 2.8.10 (please keep in alphabetical order): @WX_VERSION_TAG@.10 { + *wxArtProvider*PushBack*; *wxCArrayString*Release*; *wxDCBase*GetFontPointSizeAdjustment*; *wxWindowBase*DragAcceptFiles*;