diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-16 20:18:40 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-16 20:18:40 (GMT) |
commit | 2168e9d602cffbb6975a11353707a921455c05f7 (patch) | |
tree | 4ea57b7032c9f1ed1751fe838623259d43b3f30c /Mac/Modules/list | |
parent | b519638d1ee6715d4c262d804408041d4caf6b5a (diff) | |
download | cpython-2168e9d602cffbb6975a11353707a921455c05f7.zip cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.gz cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.bz2 |
Adapted for Universal Headers 3.4
Diffstat (limited to 'Mac/Modules/list')
-rw-r--r-- | Mac/Modules/list/_Listmodule.c | 6 | ||||
-rw-r--r-- | Mac/Modules/list/listscan.py | 1 | ||||
-rw-r--r-- | Mac/Modules/list/listsupport.py | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Modules/list/_Listmodule.c b/Mac/Modules/list/_Listmodule.c index 06e63de..af23548 100644 --- a/Mac/Modules/list/_Listmodule.c +++ b/Mac/Modules/list/_Listmodule.c @@ -378,8 +378,8 @@ static PyObject *ListObj_LClick(ListObject *_self, PyObject *_args) PyObject *_res = NULL; Boolean _rv; Point pt; - short modifiers; - if (!PyArg_ParseTuple(_args, "O&h", + EventModifiers modifiers; + if (!PyArg_ParseTuple(_args, "O&H", PyMac_GetPoint, &pt, &modifiers)) return NULL; @@ -580,7 +580,7 @@ static PyMethodDef ListObj_methods[] = { {"LCellSize", (PyCFunction)ListObj_LCellSize, 1, "(Point cSize) -> None"}, {"LClick", (PyCFunction)ListObj_LClick, 1, - "(Point pt, short modifiers) -> (Boolean _rv)"}, + "(Point pt, EventModifiers modifiers) -> (Boolean _rv)"}, {"LAddToCell", (PyCFunction)ListObj_LAddToCell, 1, "(Buffer dataPtr, Point theCell) -> None"}, {"LClrCell", (PyCFunction)ListObj_LClrCell, 1, diff --git a/Mac/Modules/list/listscan.py b/Mac/Modules/list/listscan.py index 7342fd8..0817e76 100644 --- a/Mac/Modules/list/listscan.py +++ b/Mac/Modules/list/listscan.py @@ -56,6 +56,7 @@ class MyScanner(Scanner): def makeblacklisttypes(self): return [ "ListClickLoopUPP", # Too difficult for now + "ListDefSpecPtr", # later ] def makerepairinstructions(self): diff --git a/Mac/Modules/list/listsupport.py b/Mac/Modules/list/listsupport.py index 1d0223f..23a2a84 100644 --- a/Mac/Modules/list/listsupport.py +++ b/Mac/Modules/list/listsupport.py @@ -36,6 +36,7 @@ RgnHandle = OpaqueByValueType("RgnHandle", "ResObj") DataHandle = OpaqueByValueType("DataHandle", "ResObj") Handle = OpaqueByValueType("Handle", "ResObj") CGrafPtr = OpaqueByValueType("CGrafPtr", "GrafObj") +EventModifiers = Type("EventModifiers", "H") includestuff = includestuff + """ #ifdef WITHOUT_FRAMEWORKS |