mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
cbdff766d2
commit
8f5725af60
6 changed files with 45 additions and 13 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue