summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/dlg
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-08-17 14:35:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-08-17 14:35:56 (GMT)
commitd4c26469d6d734efaa8bf2c5d997bd20b2d0de80 (patch)
treedf9a0b394a641f5455d493dd1e14b0aeb56b8503 /Mac/Modules/dlg
parentb95ea18a4c16e48e00f5c8fd0740ff8c3553373d (diff)
downloadcpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.zip
cpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.tar.gz
cpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.tar.bz2
Generated anew
Diffstat (limited to 'Mac/Modules/dlg')
-rw-r--r--Mac/Modules/dlg/Dlgmodule.c3
-rw-r--r--Mac/Modules/dlg/dlggen.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Modules/dlg/Dlgmodule.c b/Mac/Modules/dlg/Dlgmodule.c
index f1010a2..49f6553 100644
--- a/Mac/Modules/dlg/Dlgmodule.c
+++ b/Mac/Modules/dlg/Dlgmodule.c
@@ -14,6 +14,7 @@
#include <Controls.h>
extern PyObject *ResObj_New(Handle);
+extern PyObject *ResObj_OptNew(Handle);
extern int ResObj_Convert(PyObject *, Handle *);
extern PyObject *WinObj_New(WindowPtr);
@@ -191,7 +192,7 @@ static PyObject *DlgObj_GetDialogItem(_self, _args)
&box);
_res = Py_BuildValue("hO&O&",
itemType,
- ResObj_New, item,
+ ResObj_OptNew, item,
PyMac_BuildRect, &box);
return _res;
}
diff --git a/Mac/Modules/dlg/dlggen.py b/Mac/Modules/dlg/dlggen.py
index 80650fd..4319520 100644
--- a/Mac/Modules/dlg/dlggen.py
+++ b/Mac/Modules/dlg/dlggen.py
@@ -1,4 +1,4 @@
-# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
+# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
f = Function(DialogRef, 'NewDialog',
(NullStorage, 'wStorage', InMode),
@@ -85,7 +85,7 @@ f = Method(void, 'GetDialogItem',
(DialogRef, 'theDialog', InMode),
(short, 'itemNo', InMode),
(short, 'itemType', OutMode),
- (Handle, 'item', OutMode),
+ (OptHandle, 'item', OutMode),
(Rect, 'box', OutMode),
)
methods.append(f)