aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-download.c')
-rw-r--r--src/fs/gnunet-fs-gtk-download.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk-download.c b/src/fs/gnunet-fs-gtk-download.c
index cba115ab..36ad03e0 100644
--- a/src/fs/gnunet-fs-gtk-download.c
+++ b/src/fs/gnunet-fs-gtk-download.c
@@ -145,7 +145,7 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
145 call the handler manually */ 145 call the handler manually */
146 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL, 146 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL,
147 user_data); 147 user_data);
148 /* FIXME: isn't the dialog going to be destroyed with the builder? 148 /* FIXME-BUG-MAYBE: isn't the dialog going to be destroyed with the builder?
149 Is this legal and/or required? */ 149 Is this legal and/or required? */
150 gtk_widget_destroy (GTK_WIDGET (dialog)); 150 gtk_widget_destroy (GTK_WIDGET (dialog));
151} 151}
@@ -189,7 +189,7 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc)
189 dc->is_recursive); 189 dc->is_recursive);
190 190
191 /* initialize filename based on filename from 'dc' */ 191 /* initialize filename based on filename from 'dc' */
192 if (dc->filename != NULL) 192 if (NULL != dc->filename)
193 { 193 {
194 char *dirname; 194 char *dirname;
195 char *basename; 195 char *basename;
@@ -200,6 +200,7 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc)
200 if (basename > dirname) 200 if (basename > dirname)
201 basename[-1] = '\0'; 201 basename[-1] = '\0';
202 202
203 /* FIXME: remove following lines after testing... */
203 fprintf (stderr, 204 fprintf (stderr,
204 "Splitting `%s' into `%s' + `%s' for file chooser dialog.\n", 205 "Splitting `%s' into `%s' + `%s' for file chooser dialog.\n",
205 dc->filename, 206 dc->filename,
@@ -237,7 +238,7 @@ GNUNET_FS_GTK_download_context_start_download (struct DownloadContext *dc)
237 dc->uri = NULL; 238 dc->uri = NULL;
238 de->meta = dc->meta; 239 de->meta = dc->meta;
239 dc->meta = NULL; 240 dc->meta = NULL;
240 if (dc->rr != NULL) 241 if (NULL != dc->rr)
241 { 242 {
242 de->rr = gtk_tree_row_reference_copy (dc->rr); 243 de->rr = gtk_tree_row_reference_copy (dc->rr);
243 de->ts = GTK_TREE_STORE (gtk_tree_row_reference_get_model (dc->rr)); 244 de->ts = GTK_TREE_STORE (gtk_tree_row_reference_get_model (dc->rr));
@@ -268,7 +269,7 @@ GNUNET_FS_GTK_download_context_start_download (struct DownloadContext *dc)
268 if (dc->is_recursive) 269 if (dc->is_recursive)
269 opt |= GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE; 270 opt |= GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE;
270 len = GNUNET_FS_uri_chk_get_file_size (dc->uri); 271 len = GNUNET_FS_uri_chk_get_file_size (dc->uri);
271 if (dc->sr != NULL) 272 if (NULL != dc->sr)
272 { 273 {
273 GNUNET_break (NULL != 274 GNUNET_break (NULL !=
274 GNUNET_FS_download_start_from_search (fs, dc->sr, 275 GNUNET_FS_download_start_from_search (fs, dc->sr,