X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/814cbb494ad65be639c6815c66669047cdbc9387..f8c10ed8b399f864a8ab7fafe4f73ae0365d4827:/wxPython/src/_dataobj.i?ds=sidebyside diff --git a/wxPython/src/_dataobj.i b/wxPython/src/_dataobj.i index cf61d882e3..8dacc168d8 100644 --- a/wxPython/src/_dataobj.i +++ b/wxPython/src/_dataobj.i @@ -240,8 +240,9 @@ class wxDataObjectComposite : public wxDataObject { public: wxDataObjectComposite(); - %addtofunc Add "args[1].thisown = 0" + %apply SWIGTYPE *DISOWN { wxDataObjectSimple *dataObject }; void Add(wxDataObjectSimple *dataObject, int preferred = False); + %clear wxDataObjectSimple *dataObject; }; //--------------------------------------------------------------------------- @@ -424,7 +425,7 @@ public: //--------------------------------------------------------------------------- -#if !defined(__WXGTK__) && !defined(__WXX11__) +#if defined(__WXMSW__) || defined(__WXMAC__) %{ #include