diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-12-07 23:08:10 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-12-07 23:08:10 (GMT) |
commit | 8f5725af60cc26787bf61549fc780537f287ebc0 (patch) | |
tree | 9bc93b64dba5256755cbef4c62ca15a84830efd8 /Mac/Modules | |
parent | cbdff766d2be1e065c76dc571552ebe3747dcf70 (diff) | |
download | cpython-8f5725af60cc26787bf61549fc780537f287ebc0.zip cpython-8f5725af60cc26787bf61549fc780537f287ebc0.tar.gz cpython-8f5725af60cc26787bf61549fc780537f287ebc0.tar.bz2 |
First bits and pieces of appearance support: an init routine, a global flag PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE
is off the code is disabled (but the variables are still there, set to 0).
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macosmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index 14f807c..586d675 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -734,5 +734,8 @@ initMacOS() if( PyDict_SetItemString(d, "string_id_to_buffer", Py_BuildValue("i", off)) != 0) Py_FatalError("Can't define MacOS.string_id_to_buffer"); } + if (PyDict_SetItemString(d, "AppearanceCompliant", + Py_BuildValue("i", PyMac_AppearanceCompliant)) != 0) + Py_FatalError("can't define MacOS.AppearanceCompliant"); } |