X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe5e918e6cbb28da4e4041b3fccfdaf538b247c..237302e704bd8f370536509c8e8f54daa9885fd0:/wxPython/contrib/xrc/gtk/xrc_wrap.cpp diff --git a/wxPython/contrib/xrc/gtk/xrc_wrap.cpp b/wxPython/contrib/xrc/gtk/xrc_wrap.cpp index 723abd9834..f35d937304 100644 --- a/wxPython/contrib/xrc/gtk/xrc_wrap.cpp +++ b/wxPython/contrib/xrc/gtk/xrc_wrap.cpp @@ -290,7 +290,6 @@ static swig_type_info *swig_types[23]; #include #include - static const wxString wxPyEmptyString(wxEmptyString); static const wxString wxPyUTF8String(wxT("UTF-8")); static const wxString wxPyStyleString(wxT("style")); @@ -1227,7 +1226,9 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *self, PyObject *args, Py wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -1325,7 +1326,9 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *self, PyObject *args, PyO wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3;