X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cf1cb1006d6b5762d96c07ee3892883607460c7..bc50a2ae95f2ab36b16ceedc7902a9cbfb2f70ea:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index ceeaf5b111..f12c268f7b 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -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