X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5917d04127f414f0c2cd400581cb1c47395a3479..365271b573e3d0ab7512471358f98a589f18c104:/wxPython/src/gtk/_core_wrap.cpp diff --git a/wxPython/src/gtk/_core_wrap.cpp b/wxPython/src/gtk/_core_wrap.cpp index 1cc12dc0b7..5a2bb6f53d 100644 --- a/wxPython/src/gtk/_core_wrap.cpp +++ b/wxPython/src/gtk/_core_wrap.cpp @@ -41272,6 +41272,7 @@ SWIGINTERN PyObject *_wrap_Window_FromHWND(PyObject *SWIGUNUSEDPARM(self), PyObj } arg2 = static_cast< unsigned long >(val2); { + if (!wxPyCheckForApp()) SWIG_fail; PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); wxPyEndAllowThreads(__tstate); @@ -45646,7 +45647,7 @@ SWIGINTERN PyObject *MenuBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject * SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxMenu *arg1 = (wxMenu *) NULL ; - int arg2 = (int) wxID_ANY ; + int arg2 = (int) wxID_SEPARATOR ; wxString const &arg3_defvalue = wxPyEmptyString ; wxString *arg3 = (wxString *) &arg3_defvalue ; wxString const &arg4_defvalue = wxPyEmptyString ;