diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-11-11 06:41:48 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-11-11 06:41:48 +0000 |
commit | 0e9e26ce38e537e1885b4d0bc27dba1dd70f48e0 (patch) | |
tree | 82b3e6d10a20b52875c6b0909ef3dd45e7cc551c /src/filesel.c | |
parent | 18e7b57036bdf4df3707db72eba42d41a01ba222 (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.c | 5 |
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); |