]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_artprov.i
Patches from KevinO that work around issues where the widget isn't
[wxWidgets.git] / wxPython / src / _artprov.i
index 648b49fb695c3d0723f3bef6dc6a130cdcc9d923..1f6fe34cf32e2a04fa0eb91fe5df89cae9da28ea 100644 (file)
@@ -75,7 +75,7 @@ public:
                                   const wxArtClient& client,
                                   const wxSize& size) {
         wxBitmap rval = wxNullBitmap;
                                   const wxArtClient& client,
                                   const wxSize& size) {
         wxBitmap rval = wxNullBitmap;
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
         if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
             PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
             PyObject* ro;
         if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
             PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
             PyObject* ro;
@@ -93,7 +93,7 @@ public:
                 Py_DECREF(ro);
             }
         }
                 Py_DECREF(ro);
             }
         }
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
         return rval;
     }
 
         return rval;
     }
 
@@ -106,7 +106,7 @@ public:
 {
 public:
 
 {
 public:
 
-    %addtofunc wxPyArtProvider "self._setCallbackInfo(self, ArtProvider)"
+    %pythonAppend wxPyArtProvider "self._setCallbackInfo(self, ArtProvider)"
     wxPyArtProvider();
     
     void _setCallbackInfo(PyObject* self, PyObject* _class);
     wxPyArtProvider();
     
     void _setCallbackInfo(PyObject* self, PyObject* _class);