summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-27 13:00:36 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-27 13:00:36 (GMT)
commitcced0aa3e002fe92f75360eea010e25830a7ecdc (patch)
tree37999862edfa0a14aa9893ec4c97bafc3f7fa299
parentf02f4c8825f01e4bb54aa0237d46dd89383e81bf (diff)
downloadcpython-cced0aa3e002fe92f75360eea010e25830a7ecdc.zip
cpython-cced0aa3e002fe92f75360eea010e25830a7ecdc.tar.gz
cpython-cced0aa3e002fe92f75360eea010e25830a7ecdc.tar.bz2
SetListCellIndent() argument was guessed incorrectly. Fixed.
-rw-r--r--Mac/Modules/list/Listmodule.c11
-rw-r--r--Mac/Modules/list/listscan.py14
2 files changed, 10 insertions, 15 deletions
diff --git a/Mac/Modules/list/Listmodule.c b/Mac/Modules/list/Listmodule.c
index 338b611..0509812 100644
--- a/Mac/Modules/list/Listmodule.c
+++ b/Mac/Modules/list/Listmodule.c
@@ -893,13 +893,14 @@ static PyObject *List_SetListCellIndent(_self, _args)
PyObject *_res = NULL;
ListHandle list;
Point indent;
- if (!PyArg_ParseTuple(_args, "O&",
- ListObj_Convert, &list))
+ if (!PyArg_ParseTuple(_args, "O&O&",
+ ListObj_Convert, &list,
+ PyMac_GetPoint, &indent))
return NULL;
SetListCellIndent(list,
&indent);
- _res = Py_BuildValue("O&",
- PyMac_BuildPoint, indent);
+ Py_INCREF(Py_None);
+ _res = Py_None;
return _res;
}
@@ -1039,7 +1040,7 @@ static PyMethodDef List_methods[] = {
{"SetListPort", (PyCFunction)List_SetListPort, 1,
"(ListHandle list, CGrafPtr port) -> None"},
{"SetListCellIndent", (PyCFunction)List_SetListCellIndent, 1,
- "(ListHandle list) -> (Point indent)"},
+ "(ListHandle list, Point indent) -> None"},
{"SetListClickTime", (PyCFunction)List_SetListClickTime, 1,
"(ListHandle list, SInt32 time) -> None"},
{"SetListRefCon", (PyCFunction)List_SetListRefCon, 1,
diff --git a/Mac/Modules/list/listscan.py b/Mac/Modules/list/listscan.py
index b8bd549..faf81c0 100644
--- a/Mac/Modules/list/listscan.py
+++ b/Mac/Modules/list/listscan.py
@@ -74,16 +74,10 @@ class MyScanner(Scanner):
([("void", "*", "OutMode"), ("short", "*", "OutMode")],
[("VarOutBufferShortsize", "*", "InOutMode")]),
-# ([("void", "wStorage", "OutMode")],
-# [("NullStorage", "*", "InMode")]),
-#
-# # GetKeys
-# ([('KeyMap', 'theKeys', 'InMode')],
-# [('*', '*', 'OutMode')]),
-#
-# # GetTicker
-# ([('unsigned long', '*', '*')],
-# [('unsigned_long', '*', '*')]),
+ # SetListCellIndent doesn't have const
+ ([("Point", "indent", "OutMode")],
+ [("Point_ptr", "indent", "InMode")]),
+
]
def writeinitialdefs(self):