WIP - starting to write a preferences window in C