From: Robin Dunn Date: Tue, 29 Jul 2003 20:51:23 +0000 (+0000) Subject: SWIGged update for wxGTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1dbd57590d127aae1295774ec5ade4ff4d03131e SWIGged update for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/gtk/clip_dnd.cpp b/wxPython/src/gtk/clip_dnd.cpp index 50ccd63b9c..92e302c86f 100644 --- a/wxPython/src/gtk/clip_dnd.cpp +++ b/wxPython/src/gtk/clip_dnd.cpp @@ -196,8 +196,12 @@ void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { } wxPyEndBlockThreads(); } + +#if 0 extern wxClipboard * wxTheClipboard; +#endif + class wxPyDropSource : public wxDropSource { public: #ifndef __WXGTK__ diff --git a/wxPython/src/gtk/controls.cpp b/wxPython/src/gtk/controls.cpp index 7d4ea9b9b8..7aa0a60db0 100644 --- a/wxPython/src/gtk/controls.cpp +++ b/wxPython/src/gtk/controls.cpp @@ -3633,7 +3633,11 @@ static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObjec } static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { +#ifdef __WXMAC__ + wxPyClientData* data = (wxPyClientData*)self->wxItemContainer::GetClientObject(n); +#else wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); +#endif if (data) { Py_INCREF(data->m_obj); return data->m_obj; @@ -3674,7 +3678,11 @@ static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { wxPyClientData* data = new wxPyClientData(clientData); +#ifdef __WXMAC__ + self->wxItemContainer::SetClientObject(n, data); +#else self->SetClientObject(n, data); +#endif } static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; diff --git a/wxPython/src/gtk/windows2.cpp b/wxPython/src/gtk/windows2.cpp index 9bb776322f..6197c025af 100644 --- a/wxPython/src/gtk/windows2.cpp +++ b/wxPython/src/gtk/windows2.cpp @@ -59,7 +59,7 @@ extern PyObject *SWIG_newvarlink(void); #include #include #ifdef __WXMSW__ -#include +#include #endif // Put some wx default wxChar* values into wxStrings.