X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8c7ba607a15a2ff8a04448138df9ffff7df6c5..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_taskbar.i?ds=inline diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index 71b22bf22f..f0f110698f 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -61,7 +61,7 @@ enum { // Otherwise make a class that can virtualize CreatePopupMenu class wxPyTaskBarIcon : public wxTaskBarIcon { - DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon); + DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) public: wxPyTaskBarIcon() : wxTaskBarIcon() {} @@ -69,7 +69,7 @@ public: wxMenu* CreatePopupMenu() { wxMenu *rval = NULL; bool found; - bool blocked = wxPyBeginBlockThreads(); + wxPyBlock_t blocked = wxPyBeginBlockThreads(); if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { PyObject* ro; wxMenu* ptr; @@ -101,12 +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); + %pythonPrepend Destroy "args[0].this.own(False)"; %extend { void Destroy() { self->RemoveIcon();