]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_listctrl.i
Fixed OOR typo
[wxWidgets.git] / wxPython / src / _listctrl.i
index 1ecb636b6d782d5abb788ca529651c34224526d4..d95360d13a00d528838cd42f894c10ac5ffa3884 100644 (file)
@@ -341,7 +341,7 @@ EVT_LIST_ITEM_FOCUSED      = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
     static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
         int retval = 0;
         PyObject* func = (PyObject*)funcPtr;
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
 
         PyObject* args = Py_BuildValue("(ii)", item1, item2);
         PyObject* result = PyEval_CallObject(func, args);
@@ -351,7 +351,7 @@ EVT_LIST_ITEM_FOCUSED      = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
             Py_DECREF(result);
         }
 
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
         return retval;
     }
 %}
@@ -582,6 +582,9 @@ public:
     void AssignImageList(wxImageList *imageList, int which);
     %clear wxImageList *imageList;
     
+    // are we in report mode?
+    bool InReportView() const;
+        
     // returns True if it is a virtual list control
     bool IsVirtual() const;