summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/menu/menuscan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-12 10:31:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-12 10:31:54 (GMT)
commit6c7e326eaaa2d814e0d299054f78e5bd187489ab (patch)
tree5343213d9e164e76a47517111dd41b46f7fd4877 /Mac/Modules/menu/menuscan.py
parent6bf45c67523a8e81963ce645979ac85f4f75ef33 (diff)
downloadcpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.zip
cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.gz
cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.bz2
Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some TARGET_API_MAC_OSX conditional code is gone, because it is no longer used on OSX-only Python (only in MacPython-OS9).
Diffstat (limited to 'Mac/Modules/menu/menuscan.py')
-rw-r--r--Mac/Modules/menu/menuscan.py85
1 files changed, 13 insertions, 72 deletions
diff --git a/Mac/Modules/menu/menuscan.py b/Mac/Modules/menu/menuscan.py
index 60c6915..281cc86 100644
--- a/Mac/Modules/menu/menuscan.py
+++ b/Mac/Modules/menu/menuscan.py
@@ -44,80 +44,21 @@ class MyScanner(Scanner):
"GetMenuTitle", # Funny arg/returnvalue
"SetMenuTitle",
"SetMenuTitleIcon", # void*
+ # OS8 calls:
+ 'GetMenuItemRefCon2',
+ 'SetMenuItemRefCon2',
+ 'EnableItem',
+ 'DisableItem',
+ 'CheckItem',
+ 'CountMItems',
+ 'OpenDeskAcc',
+ 'SystemEdit',
+ 'SystemMenu',
+ 'SetMenuFlash',
+ 'InitMenus',
+ 'InitProcMenu',
]
- def makegreylist(self):
- return [
- ('#if !TARGET_API_MAC_CARBON', [
- 'GetMenuItemRefCon2',
- 'SetMenuItemRefCon2',
- 'EnableItem',
- 'DisableItem',
- 'CheckItem',
- 'CountMItems',
- 'OpenDeskAcc',
- 'SystemEdit',
- 'SystemMenu',
- 'SetMenuFlash',
- 'InitMenus',
- 'InitProcMenu',
- ]),
- ('#if TARGET_API_MAC_CARBON', [
- 'DisposeMenuBar',
- 'DuplicateMenuBar',
- 'CreateNewMenu',
- 'GetFontFamilyFromMenuSelection',
- 'UpdateStandardFontMenu',
- 'CreateStandardFontMenu',
- 'RemoveMenuCommandProperty',
- 'GetMenuCommandPropertySize',
- 'IsMenuCommandEnabled',
- 'DisableMenuCommand',
- 'EnableMenuCommand',
- 'GetIndMenuItemWithCommandID',
- 'CountMenuItemsWithCommandID',
- 'MenuHasEnabledItems',
- 'EnableAllMenuItems',
- 'DisableAllMenuItems',
- 'ChangeMenuItemAttributes',
- 'GetMenuItemAttributes',
- 'ChangeMenuAttributes',
- 'GetMenuAttributes',
- 'ChangeMenuItemPropertyAttributes',
- 'GetMenuItemPropertyAttributes',
- 'AcquireRootMenu',
- 'UpdateInvalidMenuItems',
- 'InvalidateMenuItems',
- 'IsMenuItemInvalid',
- 'GetMenuCommandMark',
- 'SetMenuCommandMark',
- 'GetMenuType',
- 'SetMenuItemCommandKey',
- 'GetMenuItemCommandKey',
- 'SetMenuItemIndent',
- 'GetMenuItemIndent',
- 'SetMenuItemTextWithCFString',
- 'CopyMenuItemTextAsCFString',
- 'GetMenuItemHierarchicalMenu',
- 'SetMenuItemHierarchicalMenu',
- 'SetRootMenu',
- 'IsMenuBarInvalid',
- 'InvalidateMenuEnabling',
- 'InsertMenuItemTextWithCFString',
- 'AppendMenuItemTextWithCFString',
- 'DeleteMenuItems',
- 'CopyMenuItems',
- 'IsMenuSizeInvalid',
- 'InvalidateMenuSize',
- 'SetMenuTitleWithCFString',
- 'CopyMenuTitleAsCFString',
- 'DuplicateMenu',
- 'ReleaseMenu',
- 'RetainMenu',
- 'GetMenuRetainCount',
- 'IsValidMenu',
- ])]
-
def makeblacklisttypes(self):
return [
'MCTableHandle',