X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74bcba0e3300839a9184ccaacc25dd5c05c1fad3..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/wxPython/src/windows.i?ds=sidebyside diff --git a/wxPython/src/windows.i b/wxPython/src/windows.i index f164ac7348..29a0fc72f9 100644 --- a/wxPython/src/windows.i +++ b/wxPython/src/windows.i @@ -123,7 +123,7 @@ public: wxPyValidator* ptr = NULL; wxPyValidator* self = (wxPyValidator*)this; - wxPyTState* state = wxPyBeginBlockThreads(); + wxPyBeginBlockThreads(); if (self->m_myInst.findCallback("Clone")) { PyObject* ro; ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); @@ -132,7 +132,7 @@ public: Py_DECREF(ro); } } - wxPyEndBlockThreads(state); + wxPyEndBlockThreads(); // This is very dangerous!!! But is the only way I could find // to squash a memory leak. Currently it is okay, but if the @@ -402,7 +402,7 @@ public: wxAcceleratorTable *GetAcceleratorTable(); #ifdef __WXMSW__ - // This seems pretty bogus, but is currently needed for SplitTree + // A way to do the native draw first... Too bad it isn't in wxGTK too. void OnPaint(wxPaintEvent& event); #endif };