Update preference saving for numeric values

This does the "don't save defaults" for numeric values too.

Also, move the preferences loading/saving to a new "prefs.c" file.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2013-01-11 10:14:10 -08:00 committed by Dirk Hohndel
parent c4ae58d589
commit e8a896b64d
5 changed files with 173 additions and 118 deletions

6
pref.h
View file

@ -45,4 +45,10 @@ extern int subsurface_get_conf_bool(char *name);
extern void subsurface_flush_conf(void);
extern void subsurface_close_conf(void);
/* Misc preferences - should we have defaults for these too? */
extern const char *divelist_font;
extern void load_preferences(void);
extern void save_preferences(void);
#endif /* PREF_H */