mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Replaced various dummy updateRegions by real arguments
This commit is contained in:
parent
fcdf4378ac
commit
2b72417da0
15 changed files with 43 additions and 21 deletions
|
@ -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 <Dialogs.h>
|
||||
|
@ -173,10 +176,12 @@ static PyObject *DlgObj_UpdateDialog(_self, _args)
|
|||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
RgnHandle updateRgn;
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &updateRgn))
|
||||
return NULL;
|
||||
UpdateDialog(_self->ob_itself,
|
||||
_self->ob_itself->visRgn);
|
||||
updateRgn);
|
||||
Py_INCREF(Py_None);
|
||||
_res = Py_None;
|
||||
return _res;
|
||||
|
@ -481,7 +486,7 @@ static PyMethodDef DlgObj_methods[] = {
|
|||
{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
|
||||
"() -> None"},
|
||||
{"UpdateDialog", (PyCFunction)DlgObj_UpdateDialog, 1,
|
||||
"() -> None"},
|
||||
"(RgnHandle updateRgn) -> None"},
|
||||
{"GetDialogItem", (PyCFunction)DlgObj_GetDialogItem, 1,
|
||||
"(short itemNo) -> (short itemType, Handle item, Rect box)"},
|
||||
{"SetDialogItem", (PyCFunction)DlgObj_SetDialogItem, 1,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
|
||||
# Generated from 'flap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
|
||||
|
||||
f = Function(DialogRef, 'NewDialog',
|
||||
(NullStorage, 'wStorage', InMode),
|
||||
|
|
|
@ -21,7 +21,7 @@ ModalFilterProcPtr = InputOnlyType("PyObject*", "O")
|
|||
ModalFilterProcPtr.passInput = lambda name: "NewModalFilterProc(Dlg_PassFilterProc(%s))" % name
|
||||
ModalFilterUPP = ModalFilterProcPtr
|
||||
|
||||
RgnHandle = FakeType("_self->ob_itself->visRgn") # XXX
|
||||
RgnHandle = OpaqueByValueType("RgnHandle", "ResObj")
|
||||
|
||||
DITLMethod = Type("DITLMethod", "h")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue