X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76b8fa1d2077661a6710f532eb141468ab36c1c8..d7645bfd20e2b197b2d73043e602f947610e44ff:/wxPython/src/_log.i diff --git a/wxPython/src/_log.i b/wxPython/src/_log.i index f02fdb8467..b9204ea80e 100644 --- a/wxPython/src/_log.i +++ b/wxPython/src/_log.i @@ -159,7 +159,7 @@ public: } } - %pythonAppend Destroy "args[0].thisown = 0"; + %pythonPrepend Destroy "args[0].this.own(False)"; %extend { void Destroy() { delete self; } } }; @@ -411,7 +411,7 @@ IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush); // Now tell SWIG about it class wxPyLog : public wxLog { public: - %pythonAppend wxPyLog "self._setCallbackInfo(self, PyLog)" + %pythonAppend wxPyLog setCallbackInfo(PyLog) wxPyLog();