[Python-checkins] python/dist/src/Mac/Modules/carbonevt _CarbonEvtmodule.c, 1.16, 1.17

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Fri Dec 5 19:00:35 EST 2003


Update of /cvsroot/python/python/dist/src/Mac/Modules/carbonevt
In directory sc8-pr-cvs1:/tmp/cvs-serv1524/carbonevt

Modified Files:
	_CarbonEvtmodule.c 
Log Message:
Finished update to UH 3.4.2.


Index: _CarbonEvtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/carbonevt/_CarbonEvtmodule.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** _CarbonEvtmodule.c	20 Nov 2003 13:30:56 -0000	1.16
--- _CarbonEvtmodule.c	6 Dec 2003 00:00:00 -0000	1.17
***************
*** 1751,1754 ****
--- 1751,1783 ----
  }
  
+ static PyObject *CarbonEvents_IsMouseCoalescingEnabled(PyObject *_self, PyObject *_args)
+ {
+ 	PyObject *_res = NULL;
+ 	Boolean _rv;
+ 	if (!PyArg_ParseTuple(_args, ""))
+ 		return NULL;
+ 	_rv = IsMouseCoalescingEnabled();
+ 	_res = Py_BuildValue("b",
+ 	                     _rv);
+ 	return _res;
+ }
+ 
+ static PyObject *CarbonEvents_SetMouseCoalescingEnabled(PyObject *_self, PyObject *_args)
+ {
+ 	PyObject *_res = NULL;
+ 	OSStatus _err;
+ 	Boolean inNewState;
+ 	Boolean outOldState;
+ 	if (!PyArg_ParseTuple(_args, "b",
+ 	                      &inNewState))
+ 		return NULL;
+ 	_err = SetMouseCoalescingEnabled(inNewState,
+ 	                                 &outOldState);
+ 	if (_err != noErr) return PyMac_Error(_err);
+ 	_res = Py_BuildValue("b",
+ 	                     outOldState);
+ 	return _res;
+ }
+ 
  static PyObject *CarbonEvents_GetWindowEventTarget(PyObject *_self, PyObject *_args)
  {
***************
*** 2060,2063 ****
--- 2089,2096 ----
  	{"GetLastUserEventTime", (PyCFunction)CarbonEvents_GetLastUserEventTime, 1,
  	 PyDoc_STR("() -> (double _rv)")},
+ 	{"IsMouseCoalescingEnabled", (PyCFunction)CarbonEvents_IsMouseCoalescingEnabled, 1,
+ 	 PyDoc_STR("() -> (Boolean _rv)")},
+ 	{"SetMouseCoalescingEnabled", (PyCFunction)CarbonEvents_SetMouseCoalescingEnabled, 1,
+ 	 PyDoc_STR("(Boolean inNewState) -> (Boolean outOldState)")},
  	{"GetWindowEventTarget", (PyCFunction)CarbonEvents_GetWindowEventTarget, 1,
  	 PyDoc_STR("(WindowPtr inWindow) -> (EventTargetRef _rv)")},





More information about the Python-checkins mailing list