summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-28 23:32:42 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-28 23:32:42 (GMT)
commitf1d7b41fa0d4e0b24755809a8fd9d34f5a851b57 (patch)
tree335fa6a2a2f9efe534b56861ab414d017d73fd27 /Mac/Modules
parent42efed0fc3533a43746fd4f2cc4046762c6c9242 (diff)
downloadcpython-f1d7b41fa0d4e0b24755809a8fd9d34f5a851b57.zip
cpython-f1d7b41fa0d4e0b24755809a8fd9d34f5a851b57.tar.gz
cpython-f1d7b41fa0d4e0b24755809a8fd9d34f5a851b57.tar.bz2
Disable GetWindowSpareFlag and GetWindowGoAwayBox on carbon.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/win/Winmodule.c12
-rw-r--r--Mac/Modules/win/winscan.py2
2 files changed, 14 insertions, 0 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c
index 0aa6e11..00d58a4 100644
--- a/Mac/Modules/win/Winmodule.c
+++ b/Mac/Modules/win/Winmodule.c
@@ -1637,6 +1637,8 @@ static PyObject *WinObj_GetAuxWin(_self, _args)
}
#endif
+#if !TARGET_API_MAC_CARBON
+
static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
WindowObject *_self;
PyObject *_args;
@@ -1650,6 +1652,9 @@ static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
_rv);
return _res;
}
+#endif
+
+#if !TARGET_API_MAC_CARBON
static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
WindowObject *_self;
@@ -1664,6 +1669,7 @@ static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
_rv);
return _res;
}
+#endif
static PyObject *WinObj_GetWindowPort(_self, _args)
WindowObject *_self;
@@ -2226,10 +2232,16 @@ static PyMethodDef WinObj_methods[] = {
{"GetAuxWin", (PyCFunction)WinObj_GetAuxWin, 1,
"() -> (Boolean _rv, AuxWinHandle awHndl)"},
#endif
+
+#if !TARGET_API_MAC_CARBON
{"GetWindowGoAwayFlag", (PyCFunction)WinObj_GetWindowGoAwayFlag, 1,
"() -> (Boolean _rv)"},
+#endif
+
+#if !TARGET_API_MAC_CARBON
{"GetWindowSpareFlag", (PyCFunction)WinObj_GetWindowSpareFlag, 1,
"() -> (Boolean _rv)"},
+#endif
{"GetWindowPort", (PyCFunction)WinObj_GetWindowPort, 1,
"() -> (CGrafPtr _rv)"},
{"GetWindowKind", (PyCFunction)WinObj_GetWindowKind, 1,
diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py
index cdc2b66..dcb62c3 100644
--- a/Mac/Modules/win/winscan.py
+++ b/Mac/Modules/win/winscan.py
@@ -68,6 +68,8 @@ class MyScanner(Scanner):
'IsValidWindowPtr', # I think this is useless for Python, but not sure...
'GetWindowZoomFlag', # Not available in Carbon
'GetWindowTitleWidth', # Ditto
+ 'GetWindowGoAwayFlag',
+ 'GetWindowSpareFlag',
]),
('#if TARGET_API_MAC_CARBON', [
'IsWindowUpdatePending',