Corrected _setCallbackInfo code so GiveFeedback can work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,6 +57,7 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
|
|||||||
|
|
||||||
%name(DropSource) class wxPyDropSource {
|
%name(DropSource) class wxPyDropSource {
|
||||||
public:
|
public:
|
||||||
|
%pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)"
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK__
|
||||||
wxPyDropSource(wxWindow *win,
|
wxPyDropSource(wxWindow *win,
|
||||||
const wxCursor © = wxNullCursor,
|
const wxCursor © = wxNullCursor,
|
||||||
@@ -70,14 +71,13 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);
|
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);
|
||||||
%pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxDropSource, 0)"
|
|
||||||
~wxPyDropSource();
|
~wxPyDropSource();
|
||||||
|
|
||||||
// set the data which is transfered by drag and drop
|
// set the data which is transfered by drag and drop
|
||||||
void SetData(wxDataObject& data);
|
void SetData(wxDataObject& data);
|
||||||
|
|
||||||
wxDataObject *GetDataObject();
|
wxDataObject *GetDataObject();
|
||||||
|
|
||||||
// set the icon corresponding to given drag result
|
// set the icon corresponding to given drag result
|
||||||
void SetCursor(wxDragResult res, const wxCursor& cursor);
|
void SetCursor(wxDragResult res, const wxCursor& cursor);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user