Added wxPGInitResourceModule(), needed for proper initialization in wxPython bindings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,6 +102,10 @@ extern WXDLLIMPEXP_PROPGRID wxPGGlobalVarsClass* wxPGGlobalVars;
|
||||
|
||||
#define wxPGVariant_Bool(A) (A?wxPGVariant_True:wxPGVariant_False)
|
||||
|
||||
// When wxPG is loaded dynamically after the application is already running
|
||||
// then the built-in module system won't pick this one up. Add it manually.
|
||||
WXDLLIMPEXP_PROPGRID void wxPGInitResourceModule();
|
||||
|
||||
#endif // !SWIG
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
@@ -154,6 +154,15 @@ public:
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPGGlobalVarsClassManager, wxModule)
|
||||
|
||||
|
||||
// When wxPG 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 wxPGInitResourceModule()
|
||||
{
|
||||
wxModule* module = new wxPGGlobalVarsClassManager;
|
||||
module->Init();
|
||||
wxModule::RegisterModule(module);
|
||||
}
|
||||
|
||||
wxPGGlobalVarsClass* wxPGGlobalVars = NULL;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user