diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-16 20:18:40 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-16 20:18:40 (GMT) |
commit | 2168e9d602cffbb6975a11353707a921455c05f7 (patch) | |
tree | 4ea57b7032c9f1ed1751fe838623259d43b3f30c /Mac/Modules/help | |
parent | b519638d1ee6715d4c262d804408041d4caf6b5a (diff) | |
download | cpython-2168e9d602cffbb6975a11353707a921455c05f7.zip cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.gz cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.bz2 |
Adapted for Universal Headers 3.4
Diffstat (limited to 'Mac/Modules/help')
-rw-r--r-- | Mac/Modules/help/_Helpmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/help/_Helpmodule.c b/Mac/Modules/help/_Helpmodule.c index 7a2836d..0b42fc4 100644 --- a/Mac/Modules/help/_Helpmodule.c +++ b/Mac/Modules/help/_Helpmodule.c @@ -24,7 +24,7 @@ static PyObject *Help_HMGetHelpMenuHandle(PyObject *_self, PyObject *_args) { PyObject *_res = NULL; OSErr _err; - MenuHandle mh; + MenuRef mh; if (!PyArg_ParseTuple(_args, "")) return NULL; _err = HMGetHelpMenuHandle(&mh); @@ -239,13 +239,13 @@ static PyObject *Help_HMGetBalloonWindow(PyObject *_self, PyObject *_args) _err = HMGetBalloonWindow(&window); if (_err != noErr) return PyMac_Error(_err); _res = Py_BuildValue("O&", - WinObj_WhichWindow, window); + WinObj_New, window); return _res; } static PyMethodDef Help_methods[] = { {"HMGetHelpMenuHandle", (PyCFunction)Help_HMGetHelpMenuHandle, 1, - "() -> (MenuHandle mh)"}, + "() -> (MenuRef mh)"}, {"HMRemoveBalloon", (PyCFunction)Help_HMRemoveBalloon, 1, "() -> None"}, {"HMIsBalloon", (PyCFunction)Help_HMIsBalloon, 1, |