aboutsummaryrefslogtreecommitdiff
path: root/src/filesel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-11 06:41:48 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-11 06:41:48 +0000
commit0e9e26ce38e537e1885b4d0bc27dba1dd70f48e0 (patch)
tree82b3e6d10a20b52875c6b0909ef3dd45e7cc551c /src/filesel.c
parent18e7b57036bdf4df3707db72eba42d41a01ba222 (diff)
fixed previous folder of file selection dialog not remembered with GTK+ 2.24.23.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3437 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/filesel.c')
-rw-r--r--src/filesel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filesel.c b/src/filesel.c
index 362c9fae..a50fa641 100644
--- a/src/filesel.c
+++ b/src/filesel.c
@@ -184,6 +184,11 @@ static GSList *filesel_select_file_full(const gchar *title, const gchar *file,
manage_window_set_transient(GTK_WINDOW(dialog));
+ cwd = g_get_current_dir();
+ gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), cwd);
+ g_free(cwd);
+ cwd = NULL;
+
if (file)
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog),
file);