]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes for the UNICODE build
authorRobin Dunn <robin@alldunn.com>
Tue, 6 Jan 2004 21:17:32 +0000 (21:17 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 6 Jan 2004 21:17:32 +0000 (21:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/gizmos/gizmos.i
wxPython/contrib/glcanvas/glcanvas.i
wxPython/contrib/xrc/xrc.i
wxPython/demo/Cursor.py
wxPython/distrib/build_renamers.py
wxPython/src/_defs.i
wxPython/src/html.i

index 5c2426d295e93f74403653d69c5508c07d44b632..3a6c5e88b145fbe9840c8cc65a2ed9c42d618a4b 100644 (file)
@@ -38,9 +38,9 @@
 %pythoncode { wx = core }
 
 
-MAKE_CONST_WXSTRING2(DynamicSashNameStr, "dynamicSashWindow");
-MAKE_CONST_WXSTRING2(EditableListBoxNameStr, "editableListBox");
-MAKE_CONST_WXSTRING2(TreeListCtrlNameStr, "treelistctrl");
+MAKE_CONST_WXSTRING2(DynamicSashNameStr,     wxT("dynamicSashWindow"));
+MAKE_CONST_WXSTRING2(EditableListBoxNameStr, wxT("editableListBox"));
+MAKE_CONST_WXSTRING2(TreeListCtrlNameStr,    wxT("treelistctrl"));
 
 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
 
index 2698732dbd039ad9a4ed60582a51f94adb86a7a9..43fb6b8c57ea95a35400aa64009f2a31c2a1f342 100644 (file)
@@ -27,7 +27,7 @@
 %pythoncode { wx = core }
 
 
-MAKE_CONST_WXSTRING2(GLCanvasNameStr, "GLCanvas");
+MAKE_CONST_WXSTRING2(GLCanvasNameStr, wxT("GLCanvas"));
 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
 
 
index 37612db90a28845a6f1a1cb2d17531b181484573..59d26bf353fcc50cf9ee98cd0296a527a04d0b4d 100644 (file)
 
 
 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
-MAKE_CONST_WXSTRING2(UTF8String, "UTF-8");
-MAKE_CONST_WXSTRING2(StyleString, "style");
-MAKE_CONST_WXSTRING2(SizeString, "size");
-MAKE_CONST_WXSTRING2(PosString, "pos");
-MAKE_CONST_WXSTRING2(BitmapString, "bitmap");
-MAKE_CONST_WXSTRING2(IconString, "icon");
-MAKE_CONST_WXSTRING2(FontString, "font");
+MAKE_CONST_WXSTRING2(UTF8String,   wxT("UTF-8"));
+MAKE_CONST_WXSTRING2(StyleString,  wxT("style"));
+MAKE_CONST_WXSTRING2(SizeString,   wxT("size"));
+MAKE_CONST_WXSTRING2(PosString,    wxT("pos"));
+MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
+MAKE_CONST_WXSTRING2(IconString,   wxT("icon"));
+MAKE_CONST_WXSTRING2(FontString,   wxT("font"));
 
 
 %include _xrc_rename.i
index d5cea526f74b0647354b32e89bd01dc1820a3267..8d05e7cb2cfbcb888408405159437bae33f5e0c8 100644 (file)
@@ -56,9 +56,9 @@ class TestPanel(wx.Panel):
         self.tx = wx.StaticText(self, -1,                                
              "This sample allows you to see all the stock cursors \n"
              "available to wxPython.  Simply select a name from the \n"
-             "wx.Choice and then move the mouse into the window below \n"
-             "to see the cursor.  NOTE: not all stock cursors have a \n"
-             "specific representaion on all platforms.")
+             "wx.Choice and then move the mouse into the window \n"
+             "below to see the cursor.  NOTE: not all stock cursors \n"
+             "have a specific representaion on all platforms.")
         
         self.win = wx.Window(self, -1, size=(200,200), style=wx.SIMPLE_BORDER)
         self.win.SetBackgroundColour("white")
@@ -70,8 +70,8 @@ class TestPanel(wx.Panel):
 
         # Setup the layout
         gbs = wx.GridBagSizer()
-        gbs.Add(self.cb, (2,2))
-        gbs.Add(self.tx, (2,4))
+        gbs.Add(self.cb, (2,1))
+        gbs.Add(self.tx, (2,3))
         gbs.Add(self.win, (5,0), (1, 6), wx.ALIGN_CENTER)
         self.SetSizer(gbs)
 
index e5f16ed19c98bb0aff012163ef374480ae087754..5a56b9214b75ea18375abc75de3286834108a190 100755 (executable)
@@ -211,7 +211,7 @@ def processXML(xmlfile, modname, swigFile, pyFile):
                 addWX = True
                
 
-        if doRename:
+        if doRename and name:
             old = new = name
             if old.startswith('wx') and not old.startswith('wxEVT_'):
                 # remove all wx prefixes except wxEVT_ and write a %rename directive for it
index cb02767991d8fa8dfb069c31e2f6b8e5029fecfc..e8b4f7fdd1d59c415371f30a3f4b899579db9cb0 100644 (file)
@@ -65,7 +65,7 @@ typedef unsigned char   byte;
 %enddef
 
 %define MAKE_CONST_WXSTRING2(strname, val)
-    %{ static const wxString wxPy##strname(wxT(val)); %}
+    %{ static const wxString wxPy##strname(val); %}
     %immutable;
     %name(strname) const wxString wxPy##strname;
     %mutable;
index 7449fdff7a75a8d8001a8ce4e79678f068cccdf2..5c2e764a1f5dae54f3284e21dba195868135e19f 100644 (file)
@@ -35,9 +35,9 @@
 
 
 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
-MAKE_CONST_WXSTRING2(HtmlWindowNameStr, "htmlWindow")
-MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, "Printout")
-MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, "Printing")
+MAKE_CONST_WXSTRING2(HtmlWindowNameStr,    wxT("htmlWindow"))
+MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, wxT("Printout"))
+MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, wxT("Printing"))
 
 
 // TODO: Split this file into multiple %included files that coresponds to the