From acb152d4f73c252f7bb627c0829d1e5bc163dd99 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 14 Oct 2012 18:26:08 +0100 Subject: Added history option --- src/preferences.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/preferences.c') diff --git a/src/preferences.c b/src/preferences.c index 13aa1793..847b1817 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -269,6 +269,19 @@ prefs_set_chlog(gboolean value) _save_prefs(); } +gboolean +prefs_get_history(void) +{ + return g_key_file_get_boolean(prefs, "ui", "history", NULL); +} + +void +prefs_set_history(gboolean value) +{ + g_key_file_set_boolean(prefs, "ui", "history", value); + _save_prefs(); +} + gint prefs_get_remind(void) { -- cgit 1.4.1-2-gfad0