X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/214c4fbea5875368cc21a082d20cb082cd38cb3c..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/src/_taskbar.i diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index abdc2c6539..f0f110698f 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -101,14 +101,14 @@ MustHaveApp(wxPyTaskBarIcon); class wxPyTaskBarIcon : public wxEvtHandler { public: - %pythonAppend wxPyTaskBarIcon "self._setCallbackInfo(self, TaskBarIcon, 0)" + %pythonAppend wxPyTaskBarIcon setCallbackInfo(TaskBarIcon) wxPyTaskBarIcon(); ~wxPyTaskBarIcon(); - void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=0); - %pythonAppend Destroy "args[0].thisown = 0"; + %pythonPrepend Destroy "args[0].this.own(False)"; %extend { void Destroy() { self->RemoveIcon();