aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_download-save-as.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_download-save-as.c')
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index aeb932a5..66c1ed59 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -56,11 +56,11 @@ struct DownloadAsDialogContext
56 char *dirname; 56 char *dirname;
57 57
58 /** 58 /**
59 * Set to GNUNET_YES if pressing "Save" button should initiate the download 59 * Set to #GNUNET_YES if pressing "Save" button should initiate the download
60 * right away, set to GNUNET_NO if it should only change directory and file 60 * right away, set to #GNUNET_NO if it should only change directory and file
61 * names on the download panel. 61 * names on the download panel.
62 * Popup menu sets it to GNUNET_YES, download panel "Change name" button sets 62 * Popup menu sets it to #GNUNET_YES, download panel "Change name" button sets
63 * it to GNUNET_NO. 63 * it to #GNUNET_NO.
64 */ 64 */
65 int download_directly; 65 int download_directly;
66}; 66};
@@ -189,7 +189,9 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
189 else if (de->sr != NULL && de->sr->tab != NULL && de->sr->rr != NULL) 189 else if (de->sr != NULL && de->sr->tab != NULL && de->sr->rr != NULL)
190 { 190 {
191 /* Update download panel */ 191 /* Update download panel */
192 GNUNET_FS_GTK_set_item_downloaded_name (de->sr->tab->ts, de->sr->rr, de->filename); 192 GNUNET_FS_GTK_set_item_downloaded_name (de->sr->tab->ts,
193 de->sr->rr,
194 de->filename);
193 GNUNET_FS_GTK_free_download_entry (de); 195 GNUNET_FS_GTK_free_download_entry (de);
194 } 196 }
195 /* we were successful, do not remove the directory (if we created one) */ 197 /* we were successful, do not remove the directory (if we created one) */
@@ -198,7 +200,9 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
198 clean_up_download_as_context (dlc); 200 clean_up_download_as_context (dlc);
199} 201}
200 202
201/* FIXME: implement handling for corner cases: 203
204/*
205** FIXME: implement handling for corner cases:
202 * A) Selection changes in search tab while SaveAs dialog is open. 206 * A) Selection changes in search tab while SaveAs dialog is open.
203 * If it's in direct download mode, ignore that; otherwise destroy the dialog. 207 * If it's in direct download mode, ignore that; otherwise destroy the dialog.
204 * B) Download! is pressed in download panel (or the search result is otherwise 208 * B) Download! is pressed in download panel (or the search result is otherwise
@@ -280,6 +284,7 @@ open_saveas_dialog (struct DownloadEntry *de, int download_directly)
280 gtk_window_present (GTK_WINDOW (dlc->dialog)); 284 gtk_window_present (GTK_WINDOW (dlc->dialog));
281} 285}
282 286
287
283/** 288/**
284 * Open the 'save as' dialog for a download. Calls the 'dc->cb' 289 * Open the 'save as' dialog for a download. Calls the 'dc->cb'
285 * continutation when the dialog is complete. Will release the 'dc' 290 * continutation when the dialog is complete. Will release the 'dc'
@@ -294,6 +299,7 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadEntry *de)
294 open_saveas_dialog (de, GNUNET_YES); 299 open_saveas_dialog (de, GNUNET_YES);
295} 300}
296 301
302
297/** 303/**
298 * Open the 'save as' dialog for a download. Calls the 'dc->cb' 304 * Open the 'save as' dialog for a download. Calls the 'dc->cb'
299 * continutation when the dialog is complete. Will release the 'dc' 305 * continutation when the dialog is complete. Will release the 'dc'