]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
HMGetBalloonWindow should try to return an existing window.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 25 Aug 2000 22:04:24 +0000 (22:04 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 25 Aug 2000 22:04:24 +0000 (22:04 +0000)
Mac/Modules/help/Helpmodule.c
Mac/Modules/help/helpscan.py

index fac21b6db2b758ac2bdc9432c7971790e5b3eb32..ffd20904022662c5fba38586d783ec63b446a237 100644 (file)
@@ -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;
 }
 
index da95e857072c344e47a5d84ff7863b79ca8369ee..6932793c5326a2c4d7d66c207f30d4ec3f80a5db 100644 (file)
@@ -51,6 +51,8 @@ class MyScanner(Scanner):
 
        def makerepairinstructions(self):
                return [
+                       ([("WindowPtr", "*", "OutMode")],
+                        [("ExistingWindowPtr", "*", "*")]),
                        ]
                        
 if __name__ == "__main__":