Don't call PyMac_HandleEvent in unix-Python
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 2 Sep 2001 00:08:16 +0000 (00:08 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 2 Sep 2001 00:08:16 +0000 (00:08 +0000)
Mac/Modules/Nav.c

index ff7724e5306d4254bbc38f4326e474d395ce0587..9253cca9aa939e70c81bc4ac0a8951269b085fa4 100644 (file)
@@ -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,