summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/win/Winmodule.c3
-rw-r--r--Mac/Modules/win/wingen.py4
-rw-r--r--Mac/Modules/win/winscan.py4
3 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c
index 181cf77..fc89803 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 a8c0cc2..0abf6e0 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 6ae03f4..8d089a3 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()
+