Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea39abd

Browse files
committed
more stuff
1 parent e26c263 commit ea39abd

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Mac/Modules/win/Winmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static PyObject *Win_FrontWindow(_self, _args)
661661
return NULL;
662662
_rv = FrontWindow();
663663
_res = Py_BuildValue("O&",
664-
WinObj_New, _rv);
664+
WinObj_WhichWindow, _rv);
665665
return _res;
666666
}
667667

@@ -871,3 +871,4 @@ void initWin()
871871

872872
/* ========================= End module Win ========================= */
873873

874+

Mac/Modules/win/wingen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
)
6868
methods.append(f)
6969

70-
f = Function(WindowPtr, 'FrontWindow',
70+
f = Function(ExistingWindowPtr, 'FrontWindow',
7171
)
7272
functions.append(f)
7373

@@ -224,3 +224,5 @@
224224
(Rect_ptr, 'boundsRect', InMode),
225225
)
226226
methods.append(f)
227+
228+

Mac/Modules/win/winscan.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ def makerepairinstructions(self):
6262

6363
([("WindowPtr", "*", "OutMode")],
6464
[("ExistingWindowPtr", "*", "*")]),
65+
66+
([("WindowPtr", "FrontWindow", "ReturnMode")],
67+
[("ExistingWindowPtr", "*", "*")]),
6568
]
6669

6770
if __name__ == "__main__":
6871
main()
72+

0 commit comments

Comments
 (0)