Kaydet (Commit) cced0aa3 authored tarafından Jack Jansen's avatar Jack Jansen

SetListCellIndent() argument was guessed incorrectly. Fixed.

üst f02f4c88
...@@ -893,13 +893,14 @@ static PyObject *List_SetListCellIndent(_self, _args) ...@@ -893,13 +893,14 @@ static PyObject *List_SetListCellIndent(_self, _args)
PyObject *_res = NULL; PyObject *_res = NULL;
ListHandle list; ListHandle list;
Point indent; Point indent;
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&O&",
ListObj_Convert, &list)) ListObj_Convert, &list,
PyMac_GetPoint, &indent))
return NULL; return NULL;
SetListCellIndent(list, SetListCellIndent(list,
&indent); &indent);
_res = Py_BuildValue("O&", Py_INCREF(Py_None);
PyMac_BuildPoint, indent); _res = Py_None;
return _res; return _res;
} }
...@@ -1039,7 +1040,7 @@ static PyMethodDef List_methods[] = { ...@@ -1039,7 +1040,7 @@ static PyMethodDef List_methods[] = {
{"SetListPort", (PyCFunction)List_SetListPort, 1, {"SetListPort", (PyCFunction)List_SetListPort, 1,
"(ListHandle list, CGrafPtr port) -> None"}, "(ListHandle list, CGrafPtr port) -> None"},
{"SetListCellIndent", (PyCFunction)List_SetListCellIndent, 1, {"SetListCellIndent", (PyCFunction)List_SetListCellIndent, 1,
"(ListHandle list) -> (Point indent)"}, "(ListHandle list, Point indent) -> None"},
{"SetListClickTime", (PyCFunction)List_SetListClickTime, 1, {"SetListClickTime", (PyCFunction)List_SetListClickTime, 1,
"(ListHandle list, SInt32 time) -> None"}, "(ListHandle list, SInt32 time) -> None"},
{"SetListRefCon", (PyCFunction)List_SetListRefCon, 1, {"SetListRefCon", (PyCFunction)List_SetListRefCon, 1,
......
...@@ -74,16 +74,10 @@ class MyScanner(Scanner): ...@@ -74,16 +74,10 @@ class MyScanner(Scanner):
([("void", "*", "OutMode"), ("short", "*", "OutMode")], ([("void", "*", "OutMode"), ("short", "*", "OutMode")],
[("VarOutBufferShortsize", "*", "InOutMode")]), [("VarOutBufferShortsize", "*", "InOutMode")]),
# ([("void", "wStorage", "OutMode")], # SetListCellIndent doesn't have const
# [("NullStorage", "*", "InMode")]), ([("Point", "indent", "OutMode")],
# [("Point_ptr", "indent", "InMode")]),
# # GetKeys
# ([('KeyMap', 'theKeys', 'InMode')],
# [('*', '*', 'OutMode')]),
#
# # GetTicker
# ([('unsigned long', '*', '*')],
# [('unsigned_long', '*', '*')]),
] ]
def writeinitialdefs(self): def writeinitialdefs(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment