summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/Nav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index ff7724e..9253cca 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,