]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
For MW Python, update titlebar of window when python exits.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 10 Nov 1995 14:51:26 +0000 (14:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 10 Nov 1995 14:51:26 +0000 (14:51 +0000)
Mac/Python/macmain.c

index 547456ffc4c04a7cb1c5ec95e6109cdb471bf072..f6b1dee4d9f6ace7d2a5bc50cb0a3a82fa0c81d4 100644 (file)
@@ -38,6 +38,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 #ifdef __MWERKS__
 #include <SIOUX.h>
+#define USE_SIOUX
 #endif
 
 #ifdef THINK_C
@@ -114,7 +115,7 @@ PyMac_InitApplet()
 #ifdef USE_MAC_SHARED_LIBRARY
        PyMac_AddLibResources();
 #endif
-#ifdef __MWERKS__
+#ifdef USE_SIOUX
        SIOUXSettings.asktosaveonclose = 0;
        SIOUXSettings.showstatusline = 0;
        SIOUXSettings.tabspaces = 4;
@@ -141,7 +142,7 @@ PyMac_InitApplication()
 #ifdef USE_MAC_SHARED_LIBRARY
        PyMac_AddLibResources();
 #endif
-#ifdef __MWERKS__
+#ifdef USE_SIOUX
        SIOUXSettings.asktosaveonclose = 0;
        SIOUXSettings.showstatusline = 0;
        SIOUXSettings.tabspaces = 4;
@@ -305,9 +306,12 @@ PyMac_Exit(status)
        else
                keep = keep_normal;
                
-#ifdef __MWERKS__
-       if (keep)
-               printf("\n[Terminated]\n");
+#ifdef USE_SIOUX
+       if (keep) {
+               SIOUXSettings.standalone = 1;
+               SIOUXSettings.autocloseonquit = 0;
+               SIOUXSetTitle("\pÇterminatedÈ");
+       }
        else
                SIOUXSettings.autocloseonquit = 1;
 #endif