From 6ee2116be1a8abc2cf8734bf407767c04a617990 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Sep 2001 16:32:33 +0000 Subject: [PATCH] bug #463146 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/__version__.py | 2 +- wxPython/src/gdi.i | 4 ++-- wxPython/src/msw/gdi.cpp | 13 +++++++++++-- wxPython/src/msw/gdi.py | 3 ++- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/wxPython/src/__version__.py b/wxPython/src/__version__.py index c0c68381eb..91734e84b8 100644 --- a/wxPython/src/__version__.py +++ b/wxPython/src/__version__.py @@ -1 +1 @@ -ver = '2.3.2b3' +ver = '2.3.2b4' diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index 8474a1fa01..ffcb6744b3 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -655,7 +655,7 @@ public: }; -class wxBrushList { +class wxBrushList : public wxObject { public: void AddBrush(wxBrush *brush); @@ -917,7 +917,7 @@ extern wxColour wxNullColour; extern wxFontList* wxTheFontList; extern wxPenList* wxThePenList; -extern wxBrushlist* wxTheBrushList; +extern wxBrushList* wxTheBrushList; extern wxColourDatabase* wxTheColourDatabase; diff --git a/wxPython/src/msw/gdi.cpp b/wxPython/src/msw/gdi.cpp index f509e9d0fe..49fc9bf852 100644 --- a/wxPython/src/msw/gdi.cpp +++ b/wxPython/src/msw/gdi.cpp @@ -236,7 +236,7 @@ extern wxFont wxNullFont; extern wxColour wxNullColour; extern wxFontList * wxTheFontList; extern wxPenList * wxThePenList; -extern wxBrushlist * wxTheBrushList; +extern wxBrushList * wxTheBrushList; extern wxColourDatabase * wxTheColourDatabase; #endif @@ -1240,7 +1240,7 @@ static PyObject *_wrap_wxTheBrushList_get() { PyObject * pyobj; char ptemp[128]; - SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); + SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); pyobj = PyString_FromString(ptemp); return pyobj; } @@ -6051,6 +6051,14 @@ static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject return _resultobj; } +static void *SwigwxBrushListTowxObject(void *ptr) { + wxBrushList *src; + wxObject *dest; + src = (wxBrushList *) ptr; + dest = (wxObject *) src; + return (void *) dest; +} + #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -11824,6 +11832,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, { "_wxObject","_wxDC",SwigwxDCTowxObject}, + { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, { "_wxObject","_wxPen",SwigwxPenTowxObject}, diff --git a/wxPython/src/msw/gdi.py b/wxPython/src/msw/gdi.py index c1624dfe47..7beaa65361 100644 --- a/wxPython/src/msw/gdi.py +++ b/wxPython/src/msw/gdi.py @@ -598,7 +598,7 @@ class wxBrush(wxBrushPtr): -class wxBrushListPtr : +class wxBrushListPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -1366,6 +1366,7 @@ wxNullFont = wxFontPtr(gdic.cvar.wxNullFont) wxNullColour = wxColourPtr(gdic.cvar.wxNullColour) wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList) wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList) +wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList) wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase) wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT