]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/_oglshapes2.i
Corrected _setCallbackInfo code so GiveFeedback can work
[wxWidgets.git] / wxPython / contrib / ogl / _oglshapes2.i
index 15c92da3296e7ea94663a7a111c23f1e0fb11782..cdbb5de50795453b4df42dbff2bc5e0799d95e37 100644 (file)
@@ -287,7 +287,7 @@ public:
             wxObject*   wxObj;
             wxNode*     node = list->GetFirst();
 
             wxObject*   wxObj;
             wxNode*     node = list->GetFirst();
 
-            wxPyBeginBlockThreads();
+            bool blocked = wxPyBeginBlockThreads();
             pyList = PyList_New(0);
             while (node) {
                 wxObj = node->GetData();
             pyList = PyList_New(0);
             while (node) {
                 wxObj = node->GetData();
@@ -295,7 +295,7 @@ public:
                 PyList_Append(pyList, pyObj);
                 node = node->GetNext();
             }
                 PyList_Append(pyList, pyObj);
                 node = node->GetNext();
             }
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
             return pyList;
         }
 
             return pyList;
         }
 
@@ -306,7 +306,7 @@ public:
             wxObject*   wxObj;
             wxNode*     node = list->GetFirst();
 
             wxObject*   wxObj;
             wxNode*     node = list->GetFirst();
 
-            wxPyBeginBlockThreads();
+            bool blocked = wxPyBeginBlockThreads();
             pyList = PyList_New(0);
             while (node) {
                 wxObj = node->GetData();
             pyList = PyList_New(0);
             while (node) {
                 wxObj = node->GetData();
@@ -314,7 +314,7 @@ public:
                 PyList_Append(pyList, pyObj);
                 node = node->GetNext();
             }
                 PyList_Append(pyList, pyObj);
                 node = node->GetNext();
             }
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
             return pyList;
         }        
     }
             return pyList;
         }        
     }