diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-20 05:14:04 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-20 05:14:04 +0000 |
commit | d78bf9c9d4b5feea489c9f47953d43980a9606e0 (patch) | |
tree | bc88b957f5ee15cda5bb2a666089fba4bd3f61a4 | |
parent | f3f60c59e3bffa180d4a654a5bb27f6c80d491eb (diff) |
fixed preselected directory with GTK+ 2.8.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@841 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/filesel.c | 6 |
3 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2005-12-20 + + * src/filesel.c: filesel_select_file_full(): fixed preselected + directory with GTK+ 2.8. + 2005-12-19 * src/subscribedialog.c: popup main window when the dialog is closed. diff --git a/ChangeLog.ja b/ChangeLog.ja index 40bb67f9..6afb15fd 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-12-20 + + * src/filesel.c: filesel_select_file_full(): GTK+ 2.8 で事前に選択 + されるディレクトリを修正。 + 2005-12-19 * src/subscribedialog.c: ダイアログを閉じたらメインウィンドウを前面に diff --git a/src/filesel.c b/src/filesel.c index c9087b8e..f20ab5b5 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -89,9 +89,6 @@ static GSList *filesel_select_file_full(const gchar *title, const gchar *file, dialog = filesel_create(title, action); - change_dir(prev_dir); - g_free(prev_dir); - manage_window_set_transient(GTK_WINDOW(dialog)); if (file) @@ -108,6 +105,9 @@ static GSList *filesel_select_file_full(const gchar *title, const gchar *file, gtk_widget_show(dialog); + change_dir(prev_dir); + g_free(prev_dir); + if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { list = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(dialog)); if (list) { |