]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_menu.i
Detect Apple bug that prevents the joystick code compiling for OS X 10.1
[wxWidgets.git] / 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
 };
 
 //---------------------------------------------------------------------------