summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-08-25 22:04:24 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-08-25 22:04:24 (GMT)
commitd8b382dc470d0ac46c97b067a89b068a91337a59 (patch)
tree3a43128256b178498ed277cd3d927e4d577fffd7 /Mac/Modules
parentcdb34837442a8bd8133d1db57e88e0df3d2545d0 (diff)
downloadcpython-d8b382dc470d0ac46c97b067a89b068a91337a59.zip
cpython-d8b382dc470d0ac46c97b067a89b068a91337a59.tar.gz
cpython-d8b382dc470d0ac46c97b067a89b068a91337a59.tar.bz2
HMGetBalloonWindow should try to return an existing window.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/help/Helpmodule.c2
-rw-r--r--Mac/Modules/help/helpscan.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Mac/Modules/help/Helpmodule.c b/Mac/Modules/help/Helpmodule.c
index fac21b6..ffd2090 100644
--- a/Mac/Modules/help/Helpmodule.c
+++ b/Mac/Modules/help/Helpmodule.c
@@ -261,7 +261,7 @@ static PyObject *Help_HMGetBalloonWindow(_self, _args)
_err = HMGetBalloonWindow(&window);
if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&",
- WinObj_New, window);
+ WinObj_WhichWindow, window);
return _res;
}
diff --git a/Mac/Modules/help/helpscan.py b/Mac/Modules/help/helpscan.py
index da95e85..6932793 100644
--- a/Mac/Modules/help/helpscan.py
+++ b/Mac/Modules/help/helpscan.py
@@ -51,6 +51,8 @@ class MyScanner(Scanner):
def makerepairinstructions(self):
return [
+ ([("WindowPtr", "*", "OutMode")],
+ [("ExistingWindowPtr", "*", "*")]),
]
if __name__ == "__main__":