diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk-download.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk-download.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk-download.c b/src/fs/gnunet-fs-gtk-download.c index 3f5f213b..09ae7e1f 100644 --- a/src/fs/gnunet-fs-gtk-download.c +++ b/src/fs/gnunet-fs-gtk-download.c | |||
@@ -73,7 +73,7 @@ GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event, | |||
73 | return FALSE; | 73 | return FALSE; |
74 | } | 74 | } |
75 | GNUNET_free_non_null (dc->filename); | 75 | GNUNET_free_non_null (dc->filename); |
76 | dc->filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dlc->dialog)); | 76 | dc->filename = GNUNET_GTK_filechooser_get_filename_loc (GTK_FILE_CHOOSER (dlc->dialog)); |
77 | dc->is_recursive = | 77 | dc->is_recursive = |
78 | (TRUE == | 78 | (TRUE == |
79 | gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (cb))) ? GNUNET_YES : | 79 | gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (cb))) ? GNUNET_YES : |
@@ -165,6 +165,7 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc) | |||
165 | if (dc->filename != NULL) | 165 | if (dc->filename != NULL) |
166 | { | 166 | { |
167 | char buf[1024]; | 167 | char buf[1024]; |
168 | char *buf_utf8; | ||
168 | 169 | ||
169 | if (NULL != getcwd (buf, sizeof (buf))) | 170 | if (NULL != getcwd (buf, sizeof (buf))) |
170 | { | 171 | { |
@@ -173,7 +174,12 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc) | |||
173 | strcat (buf, DIR_SEPARATOR_STR); | 174 | strcat (buf, DIR_SEPARATOR_STR); |
174 | strcat (buf, dc->filename); | 175 | strcat (buf, dc->filename); |
175 | } | 176 | } |
176 | gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (ad), buf); | 177 | buf_utf8 = GNUNET_GTK_from_loc_to_utf8 (buf); |
178 | if (buf_utf8 != NULL) | ||
179 | { | ||
180 | gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (ad), buf_utf8); | ||
181 | GNUNET_free (buf_utf8); | ||
182 | } | ||
177 | } | 183 | } |
178 | } | 184 | } |
179 | dlc = g_new0 (struct dialog_context, 1); | 185 | dlc = g_new0 (struct dialog_context, 1); |