recent version of libjson has remove is_error which was checking
[ptask.git] / src / settings.c
index be6e87c..bfe8d5b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2013 jeanfi@gmail.com
+ * Copyright (C) 2012-2016 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -77,3 +77,13 @@ void settings_set_str(const gchar *key, const gchar *value)
 {
        g_settings_set_string(settings, key, value);
 }
+
+const char *settings_get_notes_dir()
+{
+       return settings_get_str(SETTINGS_KEY_NOTES_DIR);
+}
+
+void settings_set_notes_dir(const char *dir)
+{
+       settings_set_str(SETTINGS_KEY_NOTES_DIR, dir);
+}