diff options
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Modules/mlte/Mltemodule.c | 6 | ||||
-rw-r--r-- | Mac/Modules/mlte/mltescan.py | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Mac/Modules/mlte/Mltemodule.c b/Mac/Modules/mlte/Mltemodule.c index d2aaec4..d3ff4d0 100644 --- a/Mac/Modules/mlte/Mltemodule.c +++ b/Mac/Modules/mlte/Mltemodule.c @@ -19,7 +19,7 @@ #ifdef WITHOUT_FRAMEWORKS #include <MacTextEditor.h> #else -#include <xxxx.h> +#include <Carbon/Carbon.h> #endif /* For now we declare them forward here. They'll go to mactoolbox later */ @@ -229,6 +229,7 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args) return _res; } +#if !TARGET_API_MAC_OSX static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args) { PyObject *_res = NULL; @@ -244,6 +245,7 @@ static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args) _rv); return _res; } +#endif static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args) { @@ -946,8 +948,10 @@ static PyMethodDef TXNObj_methods[] = { "(RgnHandle ioCursorRgn) -> None"}, {"TXNClick", (PyCFunction)TXNObj_TXNClick, 1, "(EventRecord iEvent) -> None"}, +#if !TARGET_API_MAC_OSX {"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1, "(EventRecord iEvent) -> (Boolean _rv)"}, +#endif {"TXNSelectAll", (PyCFunction)TXNObj_TXNSelectAll, 1, "() -> None"}, {"TXNFocus", (PyCFunction)TXNObj_TXNFocus, 1, diff --git a/Mac/Modules/mlte/mltescan.py b/Mac/Modules/mlte/mltescan.py index f9c5a6e..ae45f79 100644 --- a/Mac/Modules/mlte/mltescan.py +++ b/Mac/Modules/mlte/mltescan.py @@ -76,7 +76,11 @@ MovieFileType = FOUR_CHAR_CODE('moov') ] def makegreylist(self): - return [] + return [ + ('#if !TARGET_API_MAC_OSX', [ + 'TXNTSMCheck', + ])] + def makeblacklisttypes(self): return [ |