|
marco 1.29.1
Window manager
|
The details of one preference which is constrained to be one of a small number of string values– in other words, an enumeration. More...
Data Fields | |
| gchar * | key |
| gchar * | schema |
| MetaPreference | pref |
| gint * | target |
The details of one preference which is constrained to be one of a small number of string values– in other words, an enumeration.
We could have done this other ways. One particularly attractive possibility would have been to represent the entire symbol table as a space-separated string literal in the list of symtabs, so the focus mode enums could have been represented simply by "click sloppy mouse". However, the simplicity gained would have been outweighed by the bugs caused when the ordering of the enum strings got out of sync with the actual enum statement. Also, there is existing library code to use this kind of symbol tables.
Other things we might consider doing to clean this up in the future include:
| gchar* MetaEnumPreference::key |
Referenced by handle_preference_init_enum(), and handle_preference_update_enum().
| MetaPreference MetaEnumPreference::pref |
Referenced by handle_preference_update_enum().
| gchar* MetaEnumPreference::schema |
Referenced by handle_preference_init_enum().
| gint* MetaEnumPreference::target |
Referenced by handle_preference_init_enum(), and handle_preference_update_enum().