Added functions to initialize the local wxModules since it's possible
(normal in wxPython) for these modules to be loaded AFTER wxModule::InitializeModules has been called for the rest of wx. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -426,3 +426,16 @@ class wxXmlModule: public wxModule
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxXmlModule, wxModule)
|
||||
|
||||
|
||||
|
||||
|
||||
// When wxXml is loaded dynamically after the application is already running
|
||||
// then the built-in module system won't pick this one up. Add it manually.
|
||||
void wxXmlInitXmlModule()
|
||||
{
|
||||
wxModule* module = new wxXmlModule;
|
||||
module->Init();
|
||||
wxModule::RegisterModule(module);
|
||||
}
|
||||
|
||||
|
@@ -987,3 +987,15 @@ public:
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxXmlResourceModule, wxModule)
|
||||
|
||||
|
||||
// When wxXml is loaded dynamically after the application is already running
|
||||
// then the built-in module system won't pick this one up. Add it manually.
|
||||
void wxXmlInitResourceModule()
|
||||
{
|
||||
wxModule* module = new wxXmlResourceModule;
|
||||
module->Init();
|
||||
wxModule::RegisterModule(module);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user