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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index 170f1bc9..1cd45e8d 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -84,7 +84,7 @@ save_as_dialog_free_download_context (struct DownloadContext *dc)
84 * @param widget the dialog object 84 * @param widget the dialog object
85 * @param event the deletion event 85 * @param event the deletion event
86 * @param user_data the 'structDownloadAsDialogContext' of the dialog 86 * @param user_data the 'structDownloadAsDialogContext' of the dialog
87 * @return always FALSE 87 * @return always FALSE (destroy the window)
88 */ 88 */
89gboolean 89gboolean
90GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event, 90GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event,
@@ -106,6 +106,7 @@ GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event,
106 GNUNET_free (dlc); 106 GNUNET_free (dlc);
107 return FALSE; 107 return FALSE;
108 } 108 }
109 /* FIXME-UGLY: this code should be in the 'save_as_dialog_response_cb' instead */
109 GNUNET_free_non_null (dc->filename); 110 GNUNET_free_non_null (dc->filename);
110 dc->filename = 111 dc->filename =
111 GNUNET_GTK_filechooser_get_filename_utf8 (GTK_FILE_CHOOSER (dlc->dialog)); 112 GNUNET_GTK_filechooser_get_filename_utf8 (GTK_FILE_CHOOSER (dlc->dialog));
@@ -143,6 +144,8 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
143 dlc->response = response_id; 144 dlc->response = response_id;
144 /* dialogs don't get delete-event the way normal windows do, 145 /* dialogs don't get delete-event the way normal windows do,
145 call the handler manually */ 146 call the handler manually */
147 /* FIXME-UGLY: this is a bit ugly; instead, move the code
148 to close the dialog nicely into here! */
146 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL, 149 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL,
147 user_data); 150 user_data);
148 gtk_widget_destroy (GTK_WIDGET (dialog)); 151 gtk_widget_destroy (GTK_WIDGET (dialog));