diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-02 00:08:16 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-02 00:08:16 (GMT) |
commit | 569ba10610acd7967d0db7b5c6d5b59caccf43e5 (patch) | |
tree | 5efe86c19d3712e918d58c8b536690a7183720aa /Mac/Modules/Nav.c | |
parent | 38c4dd4d53b9db5d65c1f6e64406acc2be637858 (diff) | |
download | cpython-569ba10610acd7967d0db7b5c6d5b59caccf43e5.zip cpython-569ba10610acd7967d0db7b5c6d5b59caccf43e5.tar.gz cpython-569ba10610acd7967d0db7b5c6d5b59caccf43e5.tar.bz2 |
Don't call PyMac_HandleEvent in unix-Python
Diffstat (limited to 'Mac/Modules/Nav.c')
-rw-r--r-- | Mac/Modules/Nav.c | 2 |
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, |