X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3819e4aa45945041544d4ae60dd92aa6e359c56..08e70846d57fcfa1e6cccaf4707b32d4dd773d79:/wxPython/contrib/glcanvas/glcanvas.i diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index bb5620d857..b51b3fb5f1 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -42,6 +42,14 @@ %pragma(python) code = "import wx" +//---------------------------------------------------------------------- + +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas")); + static const wxString wxPyEmptyString(wxT("")); +%} + //--------------------------------------------------------------------------- class wxPalette; @@ -121,7 +129,7 @@ public: wxGLCanvas(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const char* name = "GLCanvas", + const wxString& name = wxPyGLCanvasNameStr, int *attribList = NULL, const wxPalette& palette = wxNullPalette); @@ -132,7 +140,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const char* name = "GLCanvas", + const wxString& name = wxPyGLCanvasNameStr, int *attribList = NULL, const wxPalette& palette = wxNullPalette );