* added creation date, due, id, uuid, urgency, and start date in the
list of tasks.
* popup menu to filter columns of the table of tasks.
+ * allow to change the directory containing the notes.
v0.0.4
------
popup menu to filter columns of the table of tasks.\r
</p>\r
</li>\r
+<li>\r
+<p>\r
+allow to change the directory containing the notes.\r
+</p>\r
+</li>\r
</ul></div>\r
</div>\r
</div>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2013-12-10 08:57:18 CET\r
+Last updated 2014-01-21 09:21:30 CET\r
</div>\r
</div>\r
</body>\r
Report bugs to <jeanfi@gmail.com>.
ptask home page: <http://wpitchoune.net/ptask>."
-ac_cs_config=""
+ac_cs_config="'--prefix=/tmp'"
ac_cs_version="\
ptask config.status 0.0.x
configured by ./configure, generated by GNU Autoconf 2.69,
fi
if $ac_cs_recheck; then
- set X /bin/bash './configure' $ac_configure_extra_args --no-create --no-recursion
+ set X /bin/bash './configure' '--prefix=/tmp' $ac_configure_extra_args --no-create --no-recursion
shift
$as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
CONFIG_SHELL='/bin/bash'
S["sbindir"]="${exec_prefix}/sbin"
S["bindir"]="${exec_prefix}/bin"
S["program_transform_name"]="s,x,x,"
-S["prefix"]="/usr/local"
+S["prefix"]="/tmp"
S["exec_prefix"]="${prefix}"
S["PACKAGE_URL"]="http://wpitchoune.net/ptask"
S["PACKAGE_BUGREPORT"]="jeanfi@gmail.com"
top_srcdir = ..
-prefix = /usr/local
+prefix = /tmp
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
datadir = ${datarootdir}
top_srcdir = ..
-prefix = /usr/local
+prefix = /tmp
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
datadir = ${datarootdir}
const char *sdir;
char *path, *dir;
- sdir = settings_get_str(SETTINGS_KEY_NOTES_DIR);
+ sdir = settings_get_notes_dir();
if (sdir == NULL || *sdir == '\0') {
dir = get_default_path();
- settings_set_str(SETTINGS_KEY_NOTES_DIR, dir);
+ settings_set_notes_dir(dir);
} else {
dir = strdup(sdir);
}
{
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);
+}
extern const char *SETTINGS_KEY_SPLITER_HORIZONTAL_POS;
extern const char *SETTINGS_KEY_TASKS_SORT_COL;
extern const char *SETTINGS_KEY_TASKS_SORT_ORDER;
-extern const char *SETTINGS_KEY_NOTES_DIR;
extern const char * const SETTINGS_VISIBLE_COL_KEYS[];
void settings_init();
gchar *settings_get_str(const gchar *key);
void settings_set_str(const gchar *key, const gchar *value);
+const char *settings_get_notes_dir();
+void settings_set_notes_dir(const char *dir);
+
#endif
GtkBuilder *builder;
GtkFileChooser *w_dir;
char *dir;
+ const char *sdir;
builder = gtk_builder_new();
gtk_builder_add_from_file
w_dir = GTK_FILE_CHOOSER(gtk_builder_get_object(builder,
"dir_chooser"));
+ sdir = settings_get_notes_dir();
+ if (sdir && *sdir)
+ gtk_file_chooser_set_filename(w_dir, sdir);
+
result = gtk_dialog_run(diag);
if (result) {
if (dir) {
log_debug("preferences_activate_cbk(): path=%s", dir);
+ settings_set_notes_dir(dir);
free(dir);
}
+ refresh();
} else {
log_debug("preferences_activate_cbk(): cancel");
}