projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
recent version of libjson has remove is_error which was checking
[ptask.git]
/
src
/
settings.c
diff --git
a/src/settings.c
b/src/settings.c
index
be6e87c
..
bfe8d5b
100644
(file)
--- a/
src/settings.c
+++ b/
src/settings.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2012-201
3
jeanfi@gmail.com
+ * Copyright (C) 2012-201
6
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
*
* 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);
}
{
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);
+}