]> granicus.if.org Git - python/commitdiff
Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 27 Apr 1998 15:09:36 +0000 (15:09 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 27 Apr 1998 15:09:36 +0000 (15:09 +0000)
Mac/Modules/qd/Qdmodule.c
Mac/Modules/qd/qdedit.py

index 97a278983c67978d6d28d84d5e2dee59f5cfa9b3..13caf5f36f23af3880e0586798efba6e66dae68b 100644 (file)
@@ -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,
index ea4d828eac660b2fc13c726aa06d054518a779aa..d9e4a152ef66a8517251ea70198bbad598b71103 100644 (file)
@@ -1,5 +1,5 @@
 f = Function(void, 'SetPort',
-       (WindowPtr, 'thePort', InMode),
+       (GrafPtr, 'thePort', InMode),
 )
 functions.append(f)