X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddeca22ce86e16e0d67e1a7dd2102c8251ab4792..c079af66c8fb4a2f68f33c6d3940b8ad8ec98f27:/wxPython/src/gtk/_controls_wrap.cpp diff --git a/wxPython/src/gtk/_controls_wrap.cpp b/wxPython/src/gtk/_controls_wrap.cpp index 09bab23608..990643e265 100644 --- a/wxPython/src/gtk/_controls_wrap.cpp +++ b/wxPython/src/gtk/_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;