]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
more stuff
authorGuido van Rossum <guido@python.org>
Tue, 28 Feb 1995 09:49:02 +0000 (09:49 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Feb 1995 09:49:02 +0000 (09:49 +0000)
Mac/Modules/win/Winmodule.c
Mac/Modules/win/wingen.py
Mac/Modules/win/winscan.py

index 181cf7763793720e053e9e389c24d9f22d535ceb..fc89803ab4fd3f3aaaec0040e60ed583e615a821 100644 (file)
@@ -661,7 +661,7 @@ static PyObject *Win_FrontWindow(_self, _args)
                return NULL;
        _rv = FrontWindow();
        _res = Py_BuildValue("O&",
-                            WinObj_New, _rv);
+                            WinObj_WhichWindow, _rv);
        return _res;
 }
 
@@ -871,3 +871,4 @@ void initWin()
 
 /* ========================= End module Win ========================= */
 
+
index a8c0cc20c4d3adad11b74a7506903d554dc61a00..0abf6e08588b5fd7d7f9143c3cfd156d931b5a9a 100644 (file)
@@ -67,7 +67,7 @@ f = Method(void, 'SendBehind',
 )
 methods.append(f)
 
-f = Function(WindowPtr, 'FrontWindow',
+f = Function(ExistingWindowPtr, 'FrontWindow',
 )
 functions.append(f)
 
@@ -224,3 +224,5 @@ f = Method(void, 'DragWindow',
     (Rect_ptr, 'boundsRect', InMode),
 )
 methods.append(f)
+
+
index 6ae03f4049f035a84106e89d7771ff7714bbf43c..8d089a341c767349d5fa4d3f96df08ec74a52575 100644 (file)
@@ -62,7 +62,11 @@ class MyScanner(Scanner):
                        
                        ([("WindowPtr", "*", "OutMode")],
                         [("ExistingWindowPtr", "*", "*")]),
+                       
+                       ([("WindowPtr", "FrontWindow", "ReturnMode")],
+                        [("ExistingWindowPtr", "*", "*")]),
                        ]
 
 if __name__ == "__main__":
        main()
+