mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
- Restore SIOUX menubar just before exiting, if the console window is kept
open (so the user can quit with cmd-Q, print, etc) - Removed a few unused routines
This commit is contained in:
parent
455838a217
commit
caa7c46ac4
2 changed files with 27 additions and 21 deletions
|
|
@ -214,6 +214,7 @@ init_common(int *argcp, char ***argvp, int embedded)
|
|||
|
||||
#ifdef USE_SIOUX
|
||||
/* Set various SIOUX flags. Some are changed later based on options */
|
||||
/* SIOUXSettings.standalone = 0; /* XXXX Attempting to keep sioux from eating events */
|
||||
SIOUXSettings.asktosaveonclose = 0;
|
||||
SIOUXSettings.showstatusline = 0;
|
||||
SIOUXSettings.tabspaces = 4;
|
||||
|
|
@ -462,6 +463,7 @@ PyMac_Exit(status)
|
|||
SIOUXSettings.standalone = 1;
|
||||
SIOUXSettings.autocloseonquit = 0;
|
||||
SIOUXSetTitle("\p\307terminated\310");
|
||||
PyMac_RestoreMenuBar();
|
||||
#ifdef USE_MSL
|
||||
/*
|
||||
** Temporary workaround: autocloseonquit clearing does not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue