From: Jack Jansen Date: Fri, 25 Aug 2000 22:04:24 +0000 (+0000) Subject: HMGetBalloonWindow should try to return an existing window. X-Git-Tag: v2.0b1~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8b382dc470d0ac46c97b067a89b068a91337a59;p=thirdparty%2FPython%2Fcpython.git HMGetBalloonWindow should try to return an existing window. --- diff --git a/Mac/Modules/help/Helpmodule.c b/Mac/Modules/help/Helpmodule.c index fac21b6db2b7..ffd209040226 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 da95e857072c..6932793c5326 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__":