about summary refs log tree commit diff stats
path: root/src/preferences.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-14 19:28:32 +0100
committerJames Booth <boothj5@gmail.com>2012-10-14 19:28:32 +0100
commit43a7f5885081ef8baa0f2a2587513397b093921c (patch)
tree5a4f25765155a861bf27d9743a2c10af8fb0a217 /src/preferences.c
parent5d49993151eecd4be09c7c33ecb99ff7dd81d170 (diff)
parent6ef7b30cd7b3dd709623fe9195d55c360f9b17e8 (diff)
downloadprofani-tty-43a7f5885081ef8baa0f2a2587513397b093921c.tar.gz
Merge branch 'master' into type_out
Diffstat (limited to 'src/preferences.c')
-rw-r--r--src/preferences.c13
1 files changed, 13 insertions, 0 deletions
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)
 {