Mercurial > pidgin.yaz
diff pidgin/gtkrequest.c @ 16799: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 | fbf111436896 |
| children | fd620cbc5149 |
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)) &&
