]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
{Is,Set}AntiAliasedTextEnabled don't exist on MacOS 8.5.5 and earlier. For now: cop...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 20 Jun 2001 21:29:19 +0000 (21:29 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 20 Jun 2001 21:29:19 +0000 (21:29 +0000)
Mac/Modules/fm/Fmmodule.c
Mac/Modules/fm/fmscan.py

index 0a072670fd056937cbf9083d50b2ac996ed12d52..0469b6cb12af03d8b36df22cc4ecfdf34824958e 100644 (file)
@@ -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}
 };
 
index 02f8ec226a31bef4db246529e84896469cc58d1b..6ade54707acca86560bc8a8f3f093a3140d4c88f 100644 (file)
@@ -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):