Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 569ba10

Browse files
committed
Don't call PyMac_HandleEvent in unix-Python
1 parent 38c4dd4 commit 569ba10

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Modules/Nav.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ my_eventProc(NavEventCallbackMessage callBackSelector,
6060
return;
6161
}
6262
if ( pyfunc == Py_None ) {
63+
#if !TARGET_API_MAC_OSX
6364
/* Special case: give update events to the Python event handling code */
6465
if ( callBackSelector == kNavCBEvent &&
6566
callBackParms->eventData.eventDataParms.event->what == updateEvt)
6667
PyMac_HandleEvent(callBackParms->eventData.eventDataParms.event);
6768
/* Ignore others */
69+
#endif
6870
return;
6971
}
7072
rv = PyObject_CallFunction(pyfunc, "ls#", (long)callBackSelector,

0 commit comments

Comments
 (0)