X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1462dfa3496ba7288691376c1de4c890d90787c..61243a510fe15e04996a986daaa53ed9fee75484:/utils/wxPython/src/clip_dnd.i diff --git a/utils/wxPython/src/clip_dnd.i b/utils/wxPython/src/clip_dnd.i index 7def4d37df..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 @@ -400,11 +401,18 @@ bool wxIsDragResultOk(wxDragResult res); %{ class wxPyDropSource : public wxDropSource { public: +#ifdef __WXMSW__ wxPyDropSource(wxWindow *win = NULL, const wxCursor &cursorCopy = wxNullCursor, const wxCursor &cursorMove = wxNullCursor, const wxCursor &cursorStop = wxNullCursor) : wxDropSource(win, cursorCopy, cursorMove, cursorStop) {} +#else + wxPyDropSource(wxWindow *win = NULL, + const wxIcon &go = wxNullIcon) + : wxDropSource(win, go) {} +#endif + ~wxPyDropSource() { } DEC_PYCALLBACK_BOOL_DR(GiveFeedback); PYPRIVATE; @@ -417,12 +425,18 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); %name(wxDropSource) class wxPyDropSource { public: +#ifdef __WXMSW__ wxPyDropSource(wxWindow *win = NULL, const wxCursor &cursorCopy = wxNullCursor, const wxCursor &cursorMove = wxNullCursor, const wxCursor &cursorStop = wxNullCursor); - void _setSelf(PyObject* self); - %pragma(python) addtomethod = "__init__:self._setSelf(self)" +#else + wxPyDropSource(wxWindow *win = NULL, + const wxIcon &go = wxNullIcon); +#endif + + void _setSelf(PyObject* self, int incref); + %pragma(python) addtomethod = "__init__:self._setSelf(self, 0)" ~wxPyDropSource(); void SetData(wxDataObject& data);