[Python-checkins] CVS: python/dist/src/Mac/Modules/fm Fmmodule.c,1.8,1.9

Jack Jansen jackjansen@users.sourceforge.net
Wed, 20 Jun 2001 14:29:17 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/fm
In directory usw-pr-cvs1:/tmp/cvs-serv1867/Python/Mac/Modules/fm

Modified Files:
	Fmmodule.c 
Log Message:
{Is,Set}AntiAliasedTextEnabled don't exist on MacOS 8.5.5 and earlier. For now: cop out and blacklist them.

Index: Fmmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/fm/Fmmodule.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Fmmodule.c	2001/05/22 21:52:22	1.8
--- Fmmodule.c	2001/06/20 21:29:15	1.9
***************
*** 282,317 ****
  }
  
- 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[] = {
  
--- 282,285 ----
***************
*** 358,365 ****
  	{"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}
  };
--- 326,329 ----