X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4120ef2b386b2f3385646d0338ff05c5a177e94c..227c63bac98c6f40f17f1ee188f22e7ac11f563d:/utils/wxPython/src/clip_dnd.i diff --git a/utils/wxPython/src/clip_dnd.i b/utils/wxPython/src/clip_dnd.i index ea9e5c0eb3..e054bedf24 100644 --- a/utils/wxPython/src/clip_dnd.i +++ b/utils/wxPython/src/clip_dnd.i @@ -376,6 +376,7 @@ public: }; %{ + // See below in the init function... wxClipboard* wxPyTheClipboard; %} %readonly @@ -411,6 +412,8 @@ public: const wxIcon &go = wxNullIcon) : wxDropSource(win, go) {} #endif + ~wxPyDropSource() { } + DEC_PYCALLBACK_BOOL_DR(GiveFeedback); PYPRIVATE; }; @@ -432,8 +435,8 @@ public: const wxIcon &go = wxNullIcon); #endif - void _setSelf(PyObject* self); - %pragma(python) addtomethod = "__init__:self._setSelf(self)" + void _setSelf(PyObject* self, int incref); + %pragma(python) addtomethod = "__init__:self._setSelf(self, 0)" ~wxPyDropSource(); void SetData(wxDataObject& data);