From: Guido van Rossum Date: Tue, 28 Feb 1995 09:49:02 +0000 (+0000) Subject: more stuff X-Git-Tag: v1.2b4~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea39abd56c9f66b54c01e7c08682329790ae59b4;p=thirdparty%2FPython%2Fcpython.git more stuff --- diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c index 181cf7763793..fc89803ab4fd 100644 --- a/Mac/Modules/win/Winmodule.c +++ b/Mac/Modules/win/Winmodule.c @@ -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 ========================= */ + diff --git a/Mac/Modules/win/wingen.py b/Mac/Modules/win/wingen.py index a8c0cc20c4d3..0abf6e08588b 100644 --- a/Mac/Modules/win/wingen.py +++ b/Mac/Modules/win/wingen.py @@ -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) + + diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index 6ae03f4049f0..8d089a341c76 100644 --- a/Mac/Modules/win/winscan.py +++ b/Mac/Modules/win/winscan.py @@ -62,7 +62,11 @@ class MyScanner(Scanner): ([("WindowPtr", "*", "OutMode")], [("ExistingWindowPtr", "*", "*")]), + + ([("WindowPtr", "FrontWindow", "ReturnMode")], + [("ExistingWindowPtr", "*", "*")]), ] if __name__ == "__main__": main() +