summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-04-27 15:09:36 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-04-27 15:09:36 (GMT)
commit29bfea9b766b701c2359a441e32ee97da91734a7 (patch)
treefe59c980ea0c642947979b2f43e144896b765d5a /Mac
parent2d7850f9efd530d3c035511a720205b9689bb081 (diff)
downloadcpython-29bfea9b766b701c2359a441e32ee97da91734a7.zip
cpython-29bfea9b766b701c2359a441e32ee97da91734a7.tar.gz
cpython-29bfea9b766b701c2359a441e32ee97da91734a7.tar.bz2
Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/qd/Qdmodule.c6
-rw-r--r--Mac/Modules/qd/qdedit.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index 97a2789..13caf5f 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -3838,9 +3838,9 @@ static PyObject *Qd_SetPort(_self, _args)
PyObject *_args;
{
PyObject *_res = NULL;
- WindowPtr thePort;
+ GrafPtr thePort;
if (!PyArg_ParseTuple(_args, "O&",
- WinObj_Convert, &thePort))
+ GrafObj_Convert, &thePort))
return NULL;
SetPort(thePort);
Py_INCREF(Py_None);
@@ -4783,7 +4783,7 @@ static PyMethodDef Qd_methods[] = {
{"CharExtra", (PyCFunction)Qd_CharExtra, 1,
"(Fixed extra) -> None"},
{"SetPort", (PyCFunction)Qd_SetPort, 1,
- "(WindowPtr thePort) -> None"},
+ "(GrafPtr thePort) -> None"},
{"GetCursor", (PyCFunction)Qd_GetCursor, 1,
"(short cursorID) -> (CursHandle _rv)"},
{"SetCursor", (PyCFunction)Qd_SetCursor, 1,
diff --git a/Mac/Modules/qd/qdedit.py b/Mac/Modules/qd/qdedit.py
index ea4d828..d9e4a15 100644
--- a/Mac/Modules/qd/qdedit.py
+++ b/Mac/Modules/qd/qdedit.py
@@ -1,5 +1,5 @@
f = Function(void, 'SetPort',
- (WindowPtr, 'thePort', InMode),
+ (GrafPtr, 'thePort', InMode),
)
functions.append(f)