]> git.saurik.com Git - wxWidgets.git/commitdiff
workaround MacSetMetalAppearance being made protected
authorRobin Dunn <robin@alldunn.com>
Wed, 8 Mar 2006 03:06:25 +0000 (03:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 8 Mar 2006 03:06:25 +0000 (03:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_toplvl.i

index ceeaf5b11104df8963bbf7f9e8c1ccc69de9da0e..f12c268f7bd29525ccb73700acac9ceccf8f1ab1 100644 (file)
@@ -134,7 +134,16 @@ public:
     virtual bool IsActive();
 
 #ifdef __WXMAC__
-    void MacSetMetalAppearance( bool on );
+    %extend {
+        void MacSetMetalAppearance( bool on ) {
+            int style = self->GetExtraStyle();
+            if ( on )
+                style |= wxFRAME_EX_METAL;
+            else
+                style &= ~wxFRAME_EX_METAL;
+            self->SetExtraStyle(style);
+        }
+    }
     bool MacGetMetalAppearance() const;
 #else
     %extend