]> git.saurik.com Git - wxWidgets.git/commitdiff
disown wxPyXmlResourceHandler
authorRobin Dunn <robin@alldunn.com>
Thu, 21 Sep 2006 22:45:15 +0000 (22:45 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 21 Sep 2006 22:45:15 +0000 (22:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_xmlhandler.i
wxPython/src/_xmlres.i

index cdf52dae8b361d50ee4d4e81de895910cfb31978..5269a40d45cf8d5c954aa9d7950fa887ebf52be5 100644 (file)
@@ -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);
 
index 87310ca821fcd160a27892acfba9c8b33cc2d63f..63090843c5125efba50ad6fb3146b0195996f3dc 100644 (file)
@@ -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();