X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddeca22ce86e16e0d67e1a7dd2102c8251ab4792..3eddc6bc00bcbdea23d52a8724f46ad56768f8b6:/wxPython/src/msw/_controls_wrap.cpp?ds=sidebyside diff --git a/wxPython/src/msw/_controls_wrap.cpp b/wxPython/src/msw/_controls_wrap.cpp index da5af3d1b6..9ef9e4770b 100644 --- a/wxPython/src/msw/_controls_wrap.cpp +++ b/wxPython/src/msw/_controls_wrap.cpp @@ -3733,6 +3733,7 @@ fail: SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxButton *arg1 = (wxButton *) 0 ; + wxWindow *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; @@ -3746,11 +3747,13 @@ SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyO arg1 = reinterpret_cast< wxButton * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefault(); + result = (wxWindow *)(arg1)->SetDefault(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_Py_Void(); + { + resultobj = wxPyMake_wxObject(result, 0); + } return resultobj; fail: return NULL;