From: Robin Dunn Date: Fri, 7 May 2004 16:34:02 +0000 (+0000) Subject: Corrected _setCallbackInfo code so GiveFeedback can work X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/864a91c827740da5e8a3e1f36feaf396d34dedc0?ds=inline Corrected _setCallbackInfo code so GiveFeedback can work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_dnd.i b/wxPython/src/_dnd.i index cf7c3c84b9..9c2ade6aa3 100644 --- a/wxPython/src/_dnd.i +++ b/wxPython/src/_dnd.i @@ -57,6 +57,7 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); %name(DropSource) class wxPyDropSource { public: + %pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)" #ifndef __WXGTK__ wxPyDropSource(wxWindow *win, const wxCursor © = wxNullCursor, @@ -70,14 +71,13 @@ public: #endif void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); - %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxDropSource, 0)" ~wxPyDropSource(); // set the data which is transfered by drag and drop void SetData(wxDataObject& data); - + wxDataObject *GetDataObject(); - + // set the icon corresponding to given drag result void SetCursor(wxDragResult res, const wxCursor& cursor);