Add standard art providers at the bottom of the art providers stack.
This ensures that any user-defined art providers will be in front of them, even when they are added at module-initialization time i.e. possibly before the standard ones. Closes #12519. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -440,13 +440,16 @@ class wxArtProviderModule: public wxModule
|
||||
public:
|
||||
bool OnInit()
|
||||
{
|
||||
#if wxUSE_ARTPROVIDER_STD
|
||||
wxArtProvider::InitStdProvider();
|
||||
#endif // wxUSE_ARTPROVIDER_STD
|
||||
// The order here is such that the native provider will be used first
|
||||
// and the standard one last as all these default providers add
|
||||
// themselves to the bottom of the stack.
|
||||
wxArtProvider::InitNativeProvider();
|
||||
#if wxUSE_ARTPROVIDER_TANGO
|
||||
wxArtProvider::InitTangoProvider();
|
||||
#endif // wxUSE_ARTPROVIDER_TANGO
|
||||
wxArtProvider::InitNativeProvider();
|
||||
#if wxUSE_ARTPROVIDER_STD
|
||||
wxArtProvider::InitStdProvider();
|
||||
#endif // wxUSE_ARTPROVIDER_STD
|
||||
return true;
|
||||
}
|
||||
void OnExit()
|
||||
|
||||
Reference in New Issue
Block a user