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).
This commit is contained in:
Jack Jansen 1999-12-07 23:08:10 +00:00
parent cbdff766d2
commit 8f5725af60
6 changed files with 45 additions and 13 deletions

View file

@ -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");
}