From 14cb220a2942ca5ffdf5a4fb32c6c3464154f78a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 21 Sep 2006 22:45:15 +0000 Subject: [PATCH] disown wxPyXmlResourceHandler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_xmlhandler.i | 2 +- wxPython/src/_xmlres.i | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wxPython/src/_xmlhandler.i b/wxPython/src/_xmlhandler.i index cdf52dae8b..5269a40d45 100644 --- a/wxPython/src/_xmlhandler.i +++ b/wxPython/src/_xmlhandler.i @@ -142,7 +142,7 @@ class wxPyXmlResourceHandler : public wxObject { public: %pythonAppend wxPyXmlResourceHandler "self._setCallbackInfo(self, XmlResourceHandler)" wxPyXmlResourceHandler() : wxXmlResourceHandler() {} - //~wxPyXmlResourceHandler(); + ~wxPyXmlResourceHandler(); void _setCallbackInfo(PyObject* self, PyObject* _class); diff --git a/wxPython/src/_xmlres.i b/wxPython/src/_xmlres.i index 87310ca821..63090843c5 100644 --- a/wxPython/src/_xmlres.i +++ b/wxPython/src/_xmlres.i @@ -102,6 +102,9 @@ public: // Initialize handlers for all supported controls/windows. void InitAllHandlers(); + + %disownarg( wxPyXmlResourceHandler *handler ); + // Initialize only specific handler (or custom handler). Convention says // that handler name is equal to control's name plus 'XmlHandler', e.g. // wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler @@ -112,6 +115,9 @@ public: // Add a new handler at the begining of the handler list void InsertHandler(wxPyXmlResourceHandler *handler); + %cleardisown( wxPyXmlResourceHandler *handler ); + + // Removes all handlers void ClearHandlers(); -- 2.47.2