mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Don't call PyMac_HandleEvent in unix-Python
This commit is contained in:
parent
38c4dd4d53
commit
569ba10610
1 changed files with 2 additions and 0 deletions
|
|
@ -60,11 +60,13 @@ my_eventProc(NavEventCallbackMessage callBackSelector,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( pyfunc == Py_None ) {
|
if ( pyfunc == Py_None ) {
|
||||||
|
#if !TARGET_API_MAC_OSX
|
||||||
/* Special case: give update events to the Python event handling code */
|
/* Special case: give update events to the Python event handling code */
|
||||||
if ( callBackSelector == kNavCBEvent &&
|
if ( callBackSelector == kNavCBEvent &&
|
||||||
callBackParms->eventData.eventDataParms.event->what == updateEvt)
|
callBackParms->eventData.eventDataParms.event->what == updateEvt)
|
||||||
PyMac_HandleEvent(callBackParms->eventData.eventDataParms.event);
|
PyMac_HandleEvent(callBackParms->eventData.eventDataParms.event);
|
||||||
/* Ignore others */
|
/* Ignore others */
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rv = PyObject_CallFunction(pyfunc, "ls#", (long)callBackSelector,
|
rv = PyObject_CallFunction(pyfunc, "ls#", (long)callBackSelector,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue