diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:09:31 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:09:31 (GMT) |
commit | 0d202b740399241d332c21960611943a0789190a (patch) | |
tree | ff6414ac6cc25160f0b74619a0cd1332a5e729d5 /Mac/Modules/win | |
parent | 42181dba8ecf9736ae0ec2384aa4307533c835e1 (diff) | |
download | cpython-0d202b740399241d332c21960611943a0789190a.zip cpython-0d202b740399241d332c21960611943a0789190a.tar.gz cpython-0d202b740399241d332c21960611943a0789190a.tar.bz2 |
Various tweaks to make it everything build and compile again under carbon. Mainly greylisted functions.
Diffstat (limited to 'Mac/Modules/win')
-rw-r--r-- | Mac/Modules/win/Winmodule.c | 12 | ||||
-rw-r--r-- | Mac/Modules/win/winedit.py | 2 | ||||
-rw-r--r-- | Mac/Modules/win/winscan.py | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c index 7984293..0ff5733 100644 --- a/Mac/Modules/win/Winmodule.c +++ b/Mac/Modules/win/Winmodule.c @@ -1872,6 +1872,8 @@ static PyObject *WinObj_IsWindowVisible(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *WinObj_GetWindowZoomFlag(_self, _args) WindowObject *_self; PyObject *_args; @@ -1885,6 +1887,7 @@ static PyObject *WinObj_GetWindowZoomFlag(_self, _args) _rv); return _res; } +#endif static PyObject *WinObj_GetWindowStructureRgn(_self, _args) WindowObject *_self; @@ -1934,6 +1937,8 @@ static PyObject *WinObj_GetWindowUpdateRgn(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *WinObj_GetWindowTitleWidth(_self, _args) WindowObject *_self; PyObject *_args; @@ -1947,6 +1952,7 @@ static PyObject *WinObj_GetWindowTitleWidth(_self, _args) _rv); return _res; } +#endif static PyObject *WinObj_GetNextWindow(_self, _args) WindowObject *_self; @@ -2255,16 +2261,22 @@ static PyMethodDef WinObj_methods[] = { "() -> (Rect bounds)"}, {"IsWindowVisible", (PyCFunction)WinObj_IsWindowVisible, 1, "() -> (Boolean _rv)"}, + +#if !TARGET_API_MAC_CARBON {"GetWindowZoomFlag", (PyCFunction)WinObj_GetWindowZoomFlag, 1, "() -> (Boolean _rv)"}, +#endif {"GetWindowStructureRgn", (PyCFunction)WinObj_GetWindowStructureRgn, 1, "(RgnHandle r) -> None"}, {"GetWindowContentRgn", (PyCFunction)WinObj_GetWindowContentRgn, 1, "(RgnHandle r) -> None"}, {"GetWindowUpdateRgn", (PyCFunction)WinObj_GetWindowUpdateRgn, 1, "(RgnHandle r) -> None"}, + +#if !TARGET_API_MAC_CARBON {"GetWindowTitleWidth", (PyCFunction)WinObj_GetWindowTitleWidth, 1, "() -> (short _rv)"}, +#endif {"GetNextWindow", (PyCFunction)WinObj_GetNextWindow, 1, "() -> (WindowPtr _rv)"}, diff --git a/Mac/Modules/win/winedit.py b/Mac/Modules/win/winedit.py index 09fd300..b1e27c3 100644 --- a/Mac/Modules/win/winedit.py +++ b/Mac/Modules/win/winedit.py @@ -8,6 +8,7 @@ methods.append(f) f = Method(Boolean, 'GetWindowZoomFlag', (WindowRef, 'theWindow', InMode), + condition='#if !TARGET_API_MAC_CARBON' ) methods.append(f) @@ -31,6 +32,7 @@ methods.append(f) f = Method(short, 'GetWindowTitleWidth', (WindowRef, 'theWindow', InMode), + condition='#if !TARGET_API_MAC_CARBON' ) methods.append(f) diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index 316a812..cdc2b66 100644 --- a/Mac/Modules/win/winscan.py +++ b/Mac/Modules/win/winscan.py @@ -66,6 +66,8 @@ class MyScanner(Scanner): 'InvalRgn', 'InvalRect', 'IsValidWindowPtr', # I think this is useless for Python, but not sure... + 'GetWindowZoomFlag', # Not available in Carbon + 'GetWindowTitleWidth', # Ditto ]), ('#if TARGET_API_MAC_CARBON', [ 'IsWindowUpdatePending', |