X-Git-Url: https://wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fsettings.c;h=bfe8d5ba30129bfcad34d34cab251830f375272c;hb=HEAD;hp=be6e87c9685a5b714209a86756d67fe1bc0c92cb;hpb=909b5e1edc01d95ebfaf39982b69831d8503c74c;p=ptask.git diff --git a/src/settings.c b/src/settings.c index be6e87c..bfe8d5b 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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); +}