X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0269b2e2a237e211b2dae7efa2731151f239560..d7403ad2d154a8e2974fdc5fc215258f3a75cdde:/wxPython/src/_taskbar.i diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index c32be7d5a7..5d4c54bf88 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -61,7 +61,14 @@ class wxTaskBarIcon : public wxEvtHandler public: wxTaskBarIcon(); ~wxTaskBarIcon(); - + + %extend { + void Destroy() { + #ifndef __WXMAC__ + self->RemoveIcon(); + #endif + } + } #ifndef __WXMAC__ bool IsOk() const;