mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c4ae58d589
commit
e8a896b64d
5 changed files with 173 additions and 118 deletions
6
pref.h
6
pref.h
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue