Commit 1e8557a9 authored by Jack Jansen's avatar Jack Jansen

For MW Python, update titlebar of window when python exits.

parent 83248363
...@@ -38,6 +38,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -38,6 +38,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef __MWERKS__ #ifdef __MWERKS__
#include <SIOUX.h> #include <SIOUX.h>
#define USE_SIOUX
#endif #endif
#ifdef THINK_C #ifdef THINK_C
...@@ -114,7 +115,7 @@ PyMac_InitApplet() ...@@ -114,7 +115,7 @@ PyMac_InitApplet()
#ifdef USE_MAC_SHARED_LIBRARY #ifdef USE_MAC_SHARED_LIBRARY
PyMac_AddLibResources(); PyMac_AddLibResources();
#endif #endif
#ifdef __MWERKS__ #ifdef USE_SIOUX
SIOUXSettings.asktosaveonclose = 0; SIOUXSettings.asktosaveonclose = 0;
SIOUXSettings.showstatusline = 0; SIOUXSettings.showstatusline = 0;
SIOUXSettings.tabspaces = 4; SIOUXSettings.tabspaces = 4;
...@@ -141,7 +142,7 @@ PyMac_InitApplication() ...@@ -141,7 +142,7 @@ PyMac_InitApplication()
#ifdef USE_MAC_SHARED_LIBRARY #ifdef USE_MAC_SHARED_LIBRARY
PyMac_AddLibResources(); PyMac_AddLibResources();
#endif #endif
#ifdef __MWERKS__ #ifdef USE_SIOUX
SIOUXSettings.asktosaveonclose = 0; SIOUXSettings.asktosaveonclose = 0;
SIOUXSettings.showstatusline = 0; SIOUXSettings.showstatusline = 0;
SIOUXSettings.tabspaces = 4; SIOUXSettings.tabspaces = 4;
...@@ -305,9 +306,12 @@ PyMac_Exit(status) ...@@ -305,9 +306,12 @@ PyMac_Exit(status)
else else
keep = keep_normal; keep = keep_normal;
#ifdef __MWERKS__ #ifdef USE_SIOUX
if (keep) if (keep) {
printf("\n[Terminated]\n"); SIOUXSettings.standalone = 1;
SIOUXSettings.autocloseonquit = 0;
SIOUXSetTitle("\pterminated");
}
else else
SIOUXSettings.autocloseonquit = 1; SIOUXSettings.autocloseonquit = 1;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment