aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-06 21:07:19 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-06 21:07:19 +0000
commitd4092f50cd87a2a8734fbd00228cd47d1c0f467f (patch)
tree1c97e624036aacfbe764f7ac98637fb2109ddf4e
parenteb948dbe157c7bdc602ed6ea41cf201ca061220c (diff)
downloadgnunet-gtk-d4092f50cd87a2a8734fbd00228cd47d1c0f467f.tar.gz
gnunet-gtk-d4092f50cd87a2a8734fbd00228cd47d1c0f467f.zip
suggest proper filename
-rw-r--r--src/download.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/download.c b/src/download.c
index d830ad9d..d6f70bf7 100644
--- a/src/download.c
+++ b/src/download.c
@@ -66,10 +66,8 @@ GNUNET_GTK_open_download_as_dialog (struct DownloadContext *dc)
66 strcat (buf, DIR_SEPARATOR_STR); 66 strcat (buf, DIR_SEPARATOR_STR);
67 strcat (buf, dc->filename); 67 strcat (buf, dc->filename);
68 } 68 }
69 /* sadly, this does not quite work in current GTK, GTK just 69 gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (ad),
70 ignores the filename if the file does not yet exist */ 70 buf);
71 gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (ad),
72 buf);
73 } 71 }
74 } 72 }
75 if (GTK_RESPONSE_OK != gtk_dialog_run (GTK_DIALOG (ad))) 73 if (GTK_RESPONSE_OK != gtk_dialog_run (GTK_DIALOG (ad)))