X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be9b4caaea3c473fac197eefaffaf30af47ba256..46ae103b9f08fc4e447d16a6a92b03cf55ee3189:/wxPython/src/_menu.i?ds=inline diff --git a/wxPython/src/_menu.i b/wxPython/src/_menu.i index 38fe89cae5..f547e9f1bf 100644 --- a/wxPython/src/_menu.i +++ b/wxPython/src/_menu.i @@ -249,7 +249,7 @@ public: virtual void EnableTop(size_t pos, bool enable); // is the menu enabled? - virtual bool IsEnabledTop(size_t WXUNUSED(pos)) const { return true; } + virtual bool IsEnabledTop(size_t pos) const; // get or change the label of the menu at given position virtual void SetLabelTop(size_t pos, const wxString& label); @@ -299,6 +299,16 @@ public: // called before deleting the menubar normally virtual void Detach(); + +#ifdef __WXMAC__ + static void SetAutoWindowMenu( bool enable ); + static bool GetAutoWindowMenu(); +#else + %extend { + static void SetAutoWindowMenu( bool enable ) {} + static bool GetAutoWindowMenu() { return false; } + } +#endif }; //---------------------------------------------------------------------------