Fixed bug in DnD. wxDragSource will now delete itself when done.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-11-21 03:37:01 +00:00
parent e78c4d503e
commit dafb483b3a
2 changed files with 5 additions and 3 deletions

View File

@@ -411,6 +411,8 @@ public:
const wxIcon &go = wxNullIcon)
: wxDropSource(win, go) {}
#endif
~wxPyDropSource() { printf("dtor\n"); }
DEC_PYCALLBACK_BOOL_DR(GiveFeedback);
PYPRIVATE;
};
@@ -432,8 +434,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);