cleanup: move pref related structs and functions to pref.c

These were declared in pref.h and defined in subsurfacestartup.c.
pref.c didn't even exist. Create it and move preferences-related
structs and functions there.

setup_system_prefs() is left in subsurfacestartup.c, since it
works with environment variables.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-02 14:03:25 +01:00 committed by Dirk Hohndel
parent 91ffa5a59a
commit fdde4c23ea
4 changed files with 134 additions and 127 deletions

View file

@ -143,6 +143,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
planner.h
plannernotes.c
pref.h
pref.c
profile.c
profile.h
qt-gui.h