From 7efa87d20203b4bfb06e610b361bd8ddca76d604 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 15 Apr 2004 19:28:25 +0000 Subject: [PATCH] MacSetTheme git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_brush.i | 4 ++-- wxPython/wx/lib/stattext.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_brush.i b/wxPython/src/_brush.i index 704d0b129f..c3e27280d5 100644 --- a/wxPython/src/_brush.i +++ b/wxPython/src/_brush.i @@ -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() } diff --git a/wxPython/wx/lib/stattext.py b/wxPython/wx/lib/stattext.py index c7cd5ff21e..ec38e165e7 100644 --- a/wxPython/wx/lib/stattext.py +++ b/wxPython/wx/lib/stattext.py @@ -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())