diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-04-10 14:48:19 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-04-10 14:48:19 (GMT) |
commit | 2b72417da0af053f6efc1b3574361744eb22d2a7 (patch) | |
tree | 2385a4dfc666a30489672c480c46794b0210be97 /Mac/Modules/list | |
parent | fcdf4378acd50b94da0cf16187363f3bf5815d6a (diff) | |
download | cpython-2b72417da0af053f6efc1b3574361744eb22d2a7.zip cpython-2b72417da0af053f6efc1b3574361744eb22d2a7.tar.gz cpython-2b72417da0af053f6efc1b3574361744eb22d2a7.tar.bz2 |
Replaced various dummy updateRegions by real arguments
Diffstat (limited to 'Mac/Modules/list')
-rw-r--r-- | Mac/Modules/list/Listmodule.c | 11 | ||||
-rw-r--r-- | Mac/Modules/list/listgen.py | 2 | ||||
-rw-r--r-- | Mac/Modules/list/listsupport.py | 3 |
3 files changed, 10 insertions, 6 deletions
diff --git a/Mac/Modules/list/Listmodule.c b/Mac/Modules/list/Listmodule.c index 17f20b0..a276ea3 100644 --- a/Mac/Modules/list/Listmodule.c +++ b/Mac/Modules/list/Listmodule.c @@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *); extern PyObject *BMObj_New(BitMapPtr); extern int BMObj_Convert(PyObject *, BitMapPtr *); +extern PyObject *PMObj_New(PixMapHandle); +extern int PMObj_Convert(PyObject *, PixMapHandle *); + extern PyObject *WinObj_WhichWindow(WindowPtr); #include <Lists.h> @@ -299,9 +302,11 @@ static PyObject *ListObj_LUpdate(_self, _args) PyObject *_args; { PyObject *_res = NULL; - if (!PyArg_ParseTuple(_args, "")) + RgnHandle theRgn; + if (!PyArg_ParseTuple(_args, "O&", + ResObj_Convert, &theRgn)) return NULL; - LUpdate((*_self->ob_itself)->port->visRgn, + LUpdate(theRgn, _self->ob_itself); Py_INCREF(Py_None); _res = Py_None; @@ -528,7 +533,7 @@ static PyMethodDef ListObj_methods[] = { {"LAutoScroll", (PyCFunction)ListObj_LAutoScroll, 1, "() -> None"}, {"LUpdate", (PyCFunction)ListObj_LUpdate, 1, - "() -> None"}, + "(RgnHandle theRgn) -> None"}, {"LActivate", (PyCFunction)ListObj_LActivate, 1, "(Boolean act) -> None"}, {"LCellSize", (PyCFunction)ListObj_LCellSize, 1, diff --git a/Mac/Modules/list/listgen.py b/Mac/Modules/list/listgen.py index 9ee6ce6..85e0485 100644 --- a/Mac/Modules/list/listgen.py +++ b/Mac/Modules/list/listgen.py @@ -1,4 +1,4 @@ -# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Lists.h' +# Generated from 'flap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Lists.h' f = Function(ListRef, 'LNew', (Rect_ptr, 'rView', InMode), diff --git a/Mac/Modules/list/listsupport.py b/Mac/Modules/list/listsupport.py index fa1e9c4..5d0c950 100644 --- a/Mac/Modules/list/listsupport.py +++ b/Mac/Modules/list/listsupport.py @@ -26,8 +26,7 @@ Cell = Point VarOutBufferShortsize = VarHeapOutputBufferType('char', 'short', 's') # (buf, &len) InBufferShortsize = VarInputBufferType('char', 'short', 's') # (buf, len) -# For LUpdate, we alsways update the complete visible region. -RgnHandle = FakeType("(*_self->ob_itself)->port->visRgn") +RgnHandle = OpaqueByValueType("RgnHandle", "ResObj") includestuff = includestuff + """ |