From: Jack Jansen Date: Sun, 2 Sep 2001 00:08:16 +0000 (+0000) Subject: Don't call PyMac_HandleEvent in unix-Python X-Git-Tag: v2.2a3~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=569ba10610acd7967d0db7b5c6d5b59caccf43e5;p=thirdparty%2FPython%2Fcpython.git Don't call PyMac_HandleEvent in unix-Python --- diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c index ff7724e5306d..9253cca9aa93 100644 --- a/Mac/Modules/Nav.c +++ b/Mac/Modules/Nav.c @@ -60,11 +60,13 @@ my_eventProc(NavEventCallbackMessage callBackSelector, return; } if ( pyfunc == Py_None ) { +#if !TARGET_API_MAC_OSX /* Special case: give update events to the Python event handling code */ if ( callBackSelector == kNavCBEvent && callBackParms->eventData.eventDataParms.event->what == updateEvt) PyMac_HandleEvent(callBackParms->eventData.eventDataParms.event); /* Ignore others */ +#endif return; } rv = PyObject_CallFunction(pyfunc, "ls#", (long)callBackSelector,