]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_taskbar.i
added missing button state
[wxWidgets.git] / wxPython / src / _taskbar.i
index 88fd35bae9fc6627be682f038d23d5c61a94cabc..f0f110698f400a3d2226ffa899086bd8ed1f229d 100644 (file)
@@ -61,7 +61,7 @@ enum {
 // Otherwise make a class that can virtualize CreatePopupMenu
 class wxPyTaskBarIcon : public wxTaskBarIcon
 {
 // Otherwise make a class that can virtualize CreatePopupMenu
 class wxPyTaskBarIcon : public wxTaskBarIcon
 {
-    DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon);
+    DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon)
 public:
     wxPyTaskBarIcon() : wxTaskBarIcon()
     {}
 public:
     wxPyTaskBarIcon() : wxTaskBarIcon()
     {}
@@ -69,7 +69,7 @@ public:
     wxMenu* CreatePopupMenu() {
         wxMenu *rval = NULL;
         bool found;
     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;
         if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) {
             PyObject* ro;
             wxMenu* ptr;
@@ -97,15 +97,18 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon);
 
 MustHaveApp(wxPyTaskBarIcon);
 
 
 MustHaveApp(wxPyTaskBarIcon);
 
-%name(TaskBarIcon)class wxPyTaskBarIcon : public wxEvtHandler
+%rename(TaskBarIcon) wxPyTaskBarIcon;
+class wxPyTaskBarIcon : public wxEvtHandler
 {
 public:
 {
 public:
-    %pythonAppend wxPyTaskBarIcon   "self._setCallbackInfo(self, TaskBarIcon, 0)"
+    %pythonAppend wxPyTaskBarIcon   setCallbackInfo(TaskBarIcon)
 
     wxPyTaskBarIcon();
 
     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();
     %extend {
         void Destroy() {
             self->RemoveIcon();