X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68bc8549d81adc1b6f031bdbb03b91a71944197c..abcbaea73fa07b88ac681c78ea6933ba70a6fd72:/wxPython/src/wx.i diff --git a/wxPython/src/wx.i b/wxPython/src/wx.i index f51a623b6d..6614275ff9 100644 --- a/wxPython/src/wx.i +++ b/wxPython/src/wx.i @@ -107,7 +107,8 @@ public: %inline %{ wxPyApp* wxGetApp() { - return wxPythonApp; + //return wxPythonApp; + return (wxPyApp*)wxTheApp; } %} @@ -202,7 +203,11 @@ static wxPyCoreAPI API = { wxPyMake_wxSizer, wxPyPtrTypeMap_Add, wxArrayString2PyList_helper, - wxArrayInt2PyList_helper + wxArrayInt2PyList_helper, + + wxPyClientData_dtor, + wxPyUserData_dtor, + wxPyOORClientData_dtor };