]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_taskbar.i
Avoid assert on wxMac
[wxWidgets.git] / wxPython / src / _taskbar.i
index 1a5ea7b2285947b969d26f36a9b2d02989734f98..9ae6d122506717ea14e36475c0d18a2f4aca5ac6 100644 (file)
@@ -104,9 +104,11 @@ public:
     %pythonAppend wxPyTaskBarIcon   "self._setCallbackInfo(self, TaskBarIcon, 0)"
 
     wxPyTaskBarIcon();
+    ~wxPyTaskBarIcon();
 
     void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);
 
+    %pythonPrepend Destroy "args[0].this.own(False)";
     %extend {
         void Destroy() {
             self->RemoveIcon();