mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
- Rationalized override preferences support, by remembering
application resource fork RefNum and looking there only - Added support for loading gusi prefs from Preferences file (needs modified GUSI, but Matthias promised he'd incorporate the fixes in the next release)
This commit is contained in:
parent
3d228879fe
commit
3f7d2b4319
2 changed files with 66 additions and 30 deletions
|
@ -52,6 +52,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
extern int Py_DebugFlag; /* For parser.c, declared in pythonrun.c */
|
||||
extern int Py_VerboseFlag; /* For import.c, declared in pythonrun.c */
|
||||
extern int Py_SuppressPrintingFlag; /* For ceval.c, declared in pythonrun.c */
|
||||
short PyMac_AppRefNum; /* RefNum of application resource fork */
|
||||
|
||||
|
||||
/* Subroutines that live in their own file */
|
||||
|
@ -97,7 +98,9 @@ init_mac_world()
|
|||
static void
|
||||
init_common()
|
||||
{
|
||||
|
||||
/* Remember resource fork refnum, for later */
|
||||
PyMac_AppRefNum = CurResFile();
|
||||
|
||||
/* Initialize toolboxes */
|
||||
init_mac_world();
|
||||
|
||||
|
@ -110,6 +113,7 @@ init_common()
|
|||
/* Setup GUSI */
|
||||
GUSIDefaultSetup();
|
||||
PyMac_SetGUSISpin();
|
||||
PyMac_SetGUSIOptions();
|
||||
#endif
|
||||
|
||||
#ifdef USE_SIOUX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue