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:
@@ -122,6 +122,10 @@ public:
|
|||||||
|
|
||||||
// Add new provider to the bottom of providers stack (i.e. the provider
|
// Add new provider to the bottom of providers stack (i.e. the provider
|
||||||
// will be queried as the last one).
|
// 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);
|
static void Insert(wxArtProvider *provider);
|
||||||
|
|
||||||
// Remove latest added provider and delete it.
|
// Remove latest added provider and delete it.
|
||||||
|
@@ -139,6 +139,11 @@ wxArtProvider::~wxArtProvider()
|
|||||||
sm_providers->Append(provider);
|
sm_providers->Append(provider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*static*/ void wxArtProvider::PushBack(wxArtProvider *provider)
|
||||||
|
{
|
||||||
|
Insert(provider);
|
||||||
|
}
|
||||||
|
|
||||||
/*static*/ bool wxArtProvider::Pop()
|
/*static*/ bool wxArtProvider::Pop()
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( sm_providers, false, _T("no wxArtProvider exists") );
|
wxCHECK_MSG( sm_providers, false, _T("no wxArtProvider exists") );
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
# public symbols added in 2.8.10 (please keep in alphabetical order):
|
# public symbols added in 2.8.10 (please keep in alphabetical order):
|
||||||
@WX_VERSION_TAG@.10 {
|
@WX_VERSION_TAG@.10 {
|
||||||
|
*wxArtProvider*PushBack*;
|
||||||
*wxCArrayString*Release*;
|
*wxCArrayString*Release*;
|
||||||
*wxDCBase*GetFontPointSizeAdjustment*;
|
*wxDCBase*GetFontPointSizeAdjustment*;
|
||||||
*wxWindowBase*DragAcceptFiles*;
|
*wxWindowBase*DragAcceptFiles*;
|
||||||
|
Reference in New Issue
Block a user