]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wx.MenuItem.Destroy a NOP since the regular garbage collection
authorRobin Dunn <robin@alldunn.com>
Mon, 18 Dec 2006 23:14:03 +0000 (23:14 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 18 Dec 2006 23:14:03 +0000 (23:14 +0000)
will handle the destruction now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_menu.i

index 1bbb3a56e403fc8a81a0efce67a41f6f76a31ee6..7d36331a39dc8abd766ea083ed91a67dc0a6d1c8 100644 (file)
@@ -369,7 +369,7 @@ public:
     // turn off this typemap
     %typemap(out) wxMenuItem*;    
 
-    wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_ANY,
+    wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_SEPARATOR,
                const wxString& text = wxPyEmptyString,
                const wxString& help = wxPyEmptyString,
                wxItemKind kind = wxITEM_NORMAL,
@@ -379,6 +379,9 @@ public:
     // Turn it back on again
     %typemap(out) wxEvtHandler* { $result = wxPyMake_wxObject($1, $owner); }
 
+    // Make Destroy a NOP.  The destruction will be handled by SWIG.
+    %pythoncode { def Destroy(self): pass }
+
     
     // the menu we're in
     wxMenu *GetMenu() const;