]> git.saurik.com Git - wxWidgets.git/commitdiff
Get/SetAutoWindowMenu for wxMac
authorRobin Dunn <robin@alldunn.com>
Wed, 1 Jun 2005 02:09:33 +0000 (02:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 1 Jun 2005 02:09:33 +0000 (02:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_menu.i

index dc6f3baa2138cf6f4e504cce0dabb88ade7b35e1..f547e9f1bf02f15e2f82ab1bcbd0153ea9e9020a 100644 (file)
@@ -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
 };
 
 //---------------------------------------------------------------------------