summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/menu/menuedit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-04-24 10:28:20 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-04-24 10:28:20 (GMT)
commite180d99280a7b7615d445a52efd63314f330e74b (patch)
tree806d4c6302ec0e534ecbf50b830339571d34bc52 /Mac/Modules/menu/menuedit.py
parent6a508aef7d024921b00a1c8fe635f19b0fa6a98f (diff)
downloadcpython-e180d99280a7b7615d445a52efd63314f330e74b.zip
cpython-e180d99280a7b7615d445a52efd63314f330e74b.tar.gz
cpython-e180d99280a7b7615d445a52efd63314f330e74b.tar.bz2
Grmpf, a lot more routines have gotten a "Mac" prefix for their
declaration, probably so the universal headers are useable on windows/unix too. Have to think of a more definite workaround later, for now we manually declare the old names in the *edit.py files.
Diffstat (limited to 'Mac/Modules/menu/menuedit.py')
-rw-r--r--Mac/Modules/menu/menuedit.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/Mac/Modules/menu/menuedit.py b/Mac/Modules/menu/menuedit.py
index 7d53cd5..37aace4 100644
--- a/Mac/Modules/menu/menuedit.py
+++ b/Mac/Modules/menu/menuedit.py
@@ -11,3 +11,39 @@ f = ManualGenerator("as_Resource", as_resource_body)
f.docstring = lambda : "Return this Menu as a Resource"
methods.append(f)
+
+# The following have "Mac" prepended to their names in the include file
+# since UH 3.1, sigh...
+f = Function(MenuHandle, 'GetMenu',
+ (short, 'resourceID', InMode),
+)
+functions.append(f)
+
+f = Method(void, 'AppendMenu',
+ (MenuHandle, 'menu', InMode),
+ (ConstStr255Param, 'data', InMode),
+)
+methods.append(f)
+
+f = Method(void, 'InsertMenu',
+ (MenuHandle, 'theMenu', InMode),
+ (short, 'beforeID', InMode),
+)
+methods.append(f)
+
+f = Function(void, 'DeleteMenu',
+ (short, 'menuID', InMode),
+)
+functions.append(f)
+
+f = Method(void, 'InsertMenuItem',
+ (MenuHandle, 'theMenu', InMode),
+ (ConstStr255Param, 'itemString', InMode),
+ (short, 'afterItem', InMode),
+)
+methods.append(f)
+
+f = Function(void, 'DrawMenuBar',
+)
+functions.append(f)
+