diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-06-20 21:29:19 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-06-20 21:29:19 (GMT) |
commit | 82bcbd04fd8397b069df805b3b1d0a16a4d13227 (patch) | |
tree | a080a91a4ba52508c3cb600d88528f6ed6b96285 /Mac | |
parent | 3685a4328d30126b0271c38c155a502bd212c25d (diff) | |
download | cpython-82bcbd04fd8397b069df805b3b1d0a16a4d13227.zip cpython-82bcbd04fd8397b069df805b3b1d0a16a4d13227.tar.gz cpython-82bcbd04fd8397b069df805b3b1d0a16a4d13227.tar.bz2 |
{Is,Set}AntiAliasedTextEnabled don't exist on MacOS 8.5.5 and earlier. For now: cop out and blacklist them.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Modules/fm/Fmmodule.c | 36 | ||||
-rw-r--r-- | Mac/Modules/fm/fmscan.py | 5 |
2 files changed, 5 insertions, 36 deletions
diff --git a/Mac/Modules/fm/Fmmodule.c b/Mac/Modules/fm/Fmmodule.c index 0a07267..0469b6c 100644 --- a/Mac/Modules/fm/Fmmodule.c +++ b/Mac/Modules/fm/Fmmodule.c @@ -281,38 +281,6 @@ static PyObject *Fm_GetAppFont(PyObject *_self, PyObject *_args) return _res; } -static PyObject *Fm_SetAntiAliasedTextEnabled(PyObject *_self, PyObject *_args) -{ - PyObject *_res = NULL; - OSStatus _err; - Boolean iEnable; - SInt16 iMinFontSize; - if (!PyArg_ParseTuple(_args, "bh", - &iEnable, - &iMinFontSize)) - return NULL; - _err = SetAntiAliasedTextEnabled(iEnable, - iMinFontSize); - if (_err != noErr) return PyMac_Error(_err); - Py_INCREF(Py_None); - _res = Py_None; - return _res; -} - -static PyObject *Fm_IsAntiAliasedTextEnabled(PyObject *_self, PyObject *_args) -{ - PyObject *_res = NULL; - Boolean _rv; - SInt16 oMinFontSize; - if (!PyArg_ParseTuple(_args, "")) - return NULL; - _rv = IsAntiAliasedTextEnabled(&oMinFontSize); - _res = Py_BuildValue("bh", - _rv, - oMinFontSize); - return _res; -} - static PyMethodDef Fm_methods[] = { #if !TARGET_API_MAC_CARBON @@ -357,10 +325,6 @@ static PyMethodDef Fm_methods[] = { "() -> (short _rv)"}, {"GetAppFont", (PyCFunction)Fm_GetAppFont, 1, "() -> (short _rv)"}, - {"SetAntiAliasedTextEnabled", (PyCFunction)Fm_SetAntiAliasedTextEnabled, 1, - "(Boolean iEnable, SInt16 iMinFontSize) -> None"}, - {"IsAntiAliasedTextEnabled", (PyCFunction)Fm_IsAntiAliasedTextEnabled, 1, - "() -> (Boolean _rv, SInt16 oMinFontSize)"}, {NULL, NULL, 0} }; diff --git a/Mac/Modules/fm/fmscan.py b/Mac/Modules/fm/fmscan.py index 02f8ec2..6ade547 100644 --- a/Mac/Modules/fm/fmscan.py +++ b/Mac/Modules/fm/fmscan.py @@ -36,6 +36,11 @@ class MyScanner(Scanner): "AntiTextSetEnabled", "AntiTextGetApplicationAware", "AntiTextSetApplicationAware", + # These are tricky: they're not Carbon dependent or anything, but they + # exist only on 8.6 or later (both in Carbon and Classic). + # Disabling them is the easiest path. + 'SetAntiAliasedTextEnabled', + 'IsAntiAliasedTextEnabled', ] def makegreylist(self): |