backported wxArtProvider::PushBack() to 2.8 so that one can write code compatible with both wx2.8 and wx3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-12-31 23:40:06 +00:00
parent 7e5ededcad
commit b345605988
3 changed files with 10 additions and 0 deletions

View File

@@ -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.

View File

@@ -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") );

View File

@@ -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*;