diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-13 02:37:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-13 02:37:56 +0000 |
commit | 90a9df8d5cf975b9ef0c276f6d951b99d8f8bbc4 (patch) | |
tree | ab690a8ff44344b362f6769740080665994efe84 /libsylph | |
parent | ea7c0c909c64e410573c7e50791acd6f6ff61c87 (diff) |
preserve the last selected folders between sessions.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3043 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/prefs_common.c | 7 | ||||
-rw-r--r-- | libsylph/prefs_common.h | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index c121ecd7..7bcd0cae 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2011 Hiroyuki Yamamoto + * Copyright (C) 1999-2012 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -497,6 +497,11 @@ static PrefParam param[] = { P_BOOL}, {"io_timeout_secs", "60", &prefs_common.io_timeout_secs, P_INT}, + /* File selector */ + {"filesel_prev_open_dir", NULL, &prefs_common.prev_open_dir, P_STRING}, + {"filesel_prev_save_dir", NULL, &prefs_common.prev_save_dir, P_STRING}, + {"filesel_prev_folder_dir", NULL, &prefs_common.prev_folder_dir, P_STRING}, + {NULL, NULL, NULL, P_OTHER} }; diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index f3210630..6c62609c 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2011 Hiroyuki Yamamoto + * Copyright (C) 1999-2012 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -330,6 +330,10 @@ struct _PrefsCommon gint addressbook_col_name; gint addressbook_col_addr; gint addressbook_col_rem; + + gchar *prev_open_dir; + gchar *prev_save_dir; + gchar *prev_folder_dir; }; extern PrefsCommon prefs_common; |