summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/list
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/list')
-rw-r--r--Mac/Modules/list/_Listmodule.c6
-rw-r--r--Mac/Modules/list/listscan.py1
-rw-r--r--Mac/Modules/list/listsupport.py1
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