]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/clip_dnd.i
Reenabled deleteallitems events, marked
[wxWidgets.git] / utils / wxPython / src / clip_dnd.i
index ea9e5c0eb385c08e475b24071afb916057e23b79..e054bedf2499912a5e53705f487e9893a295873b 100644 (file)
@@ -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);