From d643e8ca2485e42fb07832aa5bd78f9f0f4ce68b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 28 Jun 2003 02:18:17 +0000 Subject: [PATCH] SWIGged updates for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/gdi.cpp | 3 --- wxPython/src/msw/html.cpp | 9 +-------- wxPython/src/msw/html.py | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/wxPython/src/msw/gdi.cpp b/wxPython/src/msw/gdi.cpp index 785772d1ed..d1570e664e 100644 --- a/wxPython/src/msw/gdi.cpp +++ b/wxPython/src/msw/gdi.cpp @@ -62,9 +62,6 @@ extern PyObject *SWIG_newvarlink(void); #include #include #include -#ifdef __WXMAC__ -#include -#endif static PyObject* t_output_helper(PyObject* target, PyObject* o) { diff --git a/wxPython/src/msw/html.cpp b/wxPython/src/msw/html.cpp index 27b9c8e6f9..5859813940 100644 --- a/wxPython/src/msw/html.cpp +++ b/wxPython/src/msw/html.cpp @@ -1473,7 +1473,6 @@ static PyObject *_wrap_wxHtmlWinParser_GetWindow(PyObject *self, PyObject *args, wxHtmlWinParser * _arg0; PyObject * _argo0 = 0; char *_kwnames[] = { "self", NULL }; - char _ptemp[128]; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetWindow",_kwnames,&_argo0)) @@ -1491,13 +1490,7 @@ static PyObject *_wrap_wxHtmlWinParser_GetWindow(PyObject *self, PyObject *args, wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) return NULL; -} if (_result) { - SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlWindow_p"); - _resultobj = Py_BuildValue("s",_ptemp); - } else { - Py_INCREF(Py_None); - _resultobj = Py_None; - } +}{ _resultobj = wxPyMake_wxObject(_result); } return _resultobj; } diff --git a/wxPython/src/msw/html.py b/wxPython/src/msw/html.py index 6fc232d903..bee666b5fa 100644 --- a/wxPython/src/msw/html.py +++ b/wxPython/src/msw/html.py @@ -177,7 +177,6 @@ class wxHtmlWinParserPtr(wxHtmlParserPtr): return val def GetWindow(self, *_args, **_kwargs): val = htmlc.wxHtmlWinParser_GetWindow(self, *_args, **_kwargs) - if val: val = wxHtmlWindowPtr(val) return val def SetFonts(self, *_args, **_kwargs): val = htmlc.wxHtmlWinParser_SetFonts(self, *_args, **_kwargs)