X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/123dc137d396f8dca26f86d6de77518e02bd70b7..25e29eb243fcd7a5e7e620eca0f3658f6096e859:/wxPython/src/_config.i diff --git a/wxPython/src/_config.i b/wxPython/src/_config.i index 4ee0060a0f..1c8b100ff3 100644 --- a/wxPython/src/_config.i +++ b/wxPython/src/_config.i @@ -24,12 +24,14 @@ %{ static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { + wxPyBlock_t blocked = wxPyBeginBlockThreads(); PyObject* ret = PyTuple_New(3); if (ret) { PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); } + wxPyEndBlockThreads(blocked); return ret; } %} @@ -85,12 +87,12 @@ public: }; - %apply SWIGTYPE *DISOWN { wxConfigBase *config }; + %disownarg( wxConfigBase *config ); DocDeclStr( static wxConfigBase *, Set(wxConfigBase *config), "Sets the global config object (the one returned by Get) and returns a reference to the previous global config object.", ""); - %clear wxConfigBase *config; + %cleardisown( wxConfigBase *config ); DocDeclStr( static wxConfigBase *, Get(bool createOnDemand = true),