]> git.saurik.com Git - wxWidgets.git/commitdiff
MacSetTheme
authorRobin Dunn <robin@alldunn.com>
Thu, 15 Apr 2004 19:28:25 +0000 (19:28 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 15 Apr 2004 19:28:25 +0000 (19:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_brush.i
wxPython/wx/lib/stattext.py

index 704d0b129f577678e97579c851c39ecfe0e2fafa..c3e27280d503b3556d95b3020fe200adc75020a5 100644 (file)
@@ -38,8 +38,8 @@ public:
     bool Ok();
 
 #ifdef __WXMAC__
-    short GetMacTheme();
-    void SetMacTheme(short macThemeBrush);
+    short MacGetTheme();
+    void MacSetTheme(short macThemeBrush);
 #endif
 
     %pythoncode { def __nonzero__(self): return self.Ok() }
index c7cd5ff21ec1a4a305f2268bcc9a36cd83ff0107..ec38e165e71de310ce4a1b013bb3b3fbdfc375d3 100644 (file)
@@ -113,7 +113,7 @@ class GenStaticText(wx.PyControl):
         backBrush = wx.Brush(clr, wx.SOLID)
         if wx.Platform == "__WXMAC__" and clr == self.defBackClr:
             # if colour is still the default then use the striped background on Mac
-            backBrush.SetMacTheme(1) # 1 == kThemeBrushDialogBackgroundActive
+            backBrush.MacSetTheme(1) # 1 == kThemeBrushDialogBackgroundActive
         dc.SetBackground(backBrush)
 
         dc.SetTextForeground(self.GetForegroundColour())