]> granicus.if.org Git - python/commitdiff
Don't call PyMac_HandleEvent if we're in unix-Python.
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 1 Sep 2001 23:38:50 +0000 (23:38 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 1 Sep 2001 23:38:50 +0000 (23:38 +0000)
Mac/Modules/ae/_AEmodule.c
Mac/Modules/ae/aesupport.py

index 6b6e7dccf75c19650ef368b7aa0a2ef332aad72e..defa29246efaef0cecd3cf045f4324fc60d7252a 100644 (file)
@@ -39,10 +39,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
 {
        if ( PyOS_InterruptOccurred() )
                return 1;
+#if !TARGET_API_MAC_OSX
        if ( PyMac_HandleEvent(theEvent) < 0 ) {
                PySys_WriteStderr("Exception in user event handler during AE processing\n");
                PyErr_Clear();
        }
+#endif
        return 0;
 }
 
index 7a00986a68be892140b1a1b6a76b1e9aeedfbf74..c12e5b6f571451602bbd70d7603317e13113e29e 100644 (file)
@@ -105,10 +105,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
 {
        if ( PyOS_InterruptOccurred() )
                return 1;
+#if !TARGET_API_MAC_OSX
        if ( PyMac_HandleEvent(theEvent) < 0 ) {
                PySys_WriteStderr("Exception in user event handler during AE processing\\n");
                PyErr_Clear();
        }
+#endif
        return 0;
 }