X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4dfaa61e60c3f7bf781d22687fffe2453d97d008..922ba68045d84789ab1dfceb4d1aa1b6e2c5e810:/wxPython/src/gtk/misc.cpp?ds=sidebyside diff --git a/wxPython/src/gtk/misc.cpp b/wxPython/src/gtk/misc.cpp index 4b65fa797b..0192a4439a 100644 --- a/wxPython/src/gtk/misc.cpp +++ b/wxPython/src/gtk/misc.cpp @@ -90,7 +90,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #if PYTHON_API_VERSION >= 1009 static char* wxStringErrorMsg = "String or Unicode type required"; #else - static char* wxStringErrorMsg = "string type is required for parameter"; + static char* wxStringErrorMsg = "String type required"; #endif static wxString wxPyEmptyStr(""); @@ -105,13 +105,13 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { dest = reg1.GetBox(); if (dest != wxRect(0,0,0,0)) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); wxRect* newRect = new wxRect(dest); obj = wxPyConstructObject((void*)newRect, "wxRect"); PyObject* one = PyInt_FromLong(1); PyObject_SetAttrString(obj, "thisown", one); Py_DECREF(one); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); return obj; } Py_INCREF(Py_None); @@ -4199,14 +4199,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { { "_byte","_unsigned_char",0}, { "_long","_unsigned_long",0}, { "_long","_signed_long",0}, - { "_class_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject}, - { "_class_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject}, - { "_class_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject}, - { "_class_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject}, - { "_class_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject}, - { "_class_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject}, - { "_class_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject}, - { "_class_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject}, { "_size_t","_wxCoord",0}, { "_size_t","_wxPrintQuality",0}, { "_size_t","_time_t",0}, @@ -4239,13 +4231,9 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { { "_WXTYPE","_unsigned_short",0}, { "_unsigned_short","_WXTYPE",0}, { "_unsigned_short","_short",0}, - { "_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject}, { "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject}, - { "_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject}, { "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject}, - { "_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject}, { "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject}, - { "_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject}, { "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject}, { "_signed_short","_WXTYPE",0}, { "_signed_short","_short",0},