From daddf2834365798269c2d57486a06ec404663296 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 17 Dec 2002 02:22:40 +0000 Subject: [PATCH] SWIGged updates for wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/gdi.cpp | 4 ++-- wxPython/src/msw/misc2.cpp | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/wxPython/src/msw/gdi.cpp b/wxPython/src/msw/gdi.cpp index 9e34f5047c..5a82156cd7 100644 --- a/wxPython/src/msw/gdi.cpp +++ b/wxPython/src/msw/gdi.cpp @@ -8451,7 +8451,7 @@ static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * else { obj = PySequence_GetItem(pyPoints, i); } - if (! _2int_seq_helper(obj, &x1, &y1)) { + if (! wxPy2int_seq_helper(obj, &x1, &y1)) { if (!isFastPens) Py_DECREF(obj); goto err0; @@ -8576,7 +8576,7 @@ static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * py else { obj = PySequence_GetItem(pyLines, i); } - if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { + if (! wxPy4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { if (!isFastPens) Py_DECREF(obj); goto err0; diff --git a/wxPython/src/msw/misc2.cpp b/wxPython/src/msw/misc2.cpp index 0b0e55edeb..65d7f44671 100644 --- a/wxPython/src/msw/misc2.cpp +++ b/wxPython/src/msw/misc2.cpp @@ -1548,11 +1548,13 @@ static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwa PyObject * _resultobj; bool _result; wxWindow * _arg0 = (wxWindow *) NULL; + bool _arg1 = (bool ) FALSE; PyObject * _argo0 = 0; - char *_kwnames[] = { "win", NULL }; + int tempbool1 = (int) FALSE; + char *_kwnames[] = { "win","onlyIfNeeded", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:wxSafeYield",_kwnames,&_argo0,&tempbool1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } @@ -1561,9 +1563,10 @@ static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwa return NULL; } } + _arg1 = (bool ) tempbool1; { PyThreadState* __tstate = wxPyBeginAllowThreads(); - _result = (bool )wxSafeYield(_arg0); + _result = (bool )wxSafeYield(_arg0,_arg1); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) return NULL;