Mercurial > pidgin
changeset 16788:35b35ea1dce6
This fixes #412. Apparently gtk_file_chooser_set_filename() doesn't like it when the filename specified doesn't actually exist. This is a GTK+ bug, which I will report.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 03 May 2007 03:43:03 +0000 |
parents | 9824b2568a9c |
children | 402be2b9d246 |
files | pidgin/gtkrequest.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkrequest.c Wed May 02 20:57:57 2007 +0000 +++ b/pidgin/gtkrequest.c Thu May 03 03:43:03 2007 +0000 @@ -1547,7 +1547,7 @@ if ((filename != NULL) && (*filename != '\0')) { if (savedialog) gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(filesel), filename); - else + else if (g_file_test(filename, G_FILE_TEST_EXISTS)) gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(filesel), filename); } if ((filename == NULL || *filename == '\0' || !g_file_test(filename, G_FILE_TEST_EXISTS)) &&