aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-01 21:13:21 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-01 21:13:21 +0000
commit6a5d4d1d242a21bbd78ebb289cf730de7c715b00 (patch)
tree39ca72846c10c3c0f79e1dd26b0b3b44c35908c0
parentb28bec8855ca26ac4d597a8cfee58aa904610a1e (diff)
downloadgnunet-gtk-6a5d4d1d242a21bbd78ebb289cf730de7c715b00.tar.gz
gnunet-gtk-6a5d4d1d242a21bbd78ebb289cf730de7c715b00.zip
-use dl consistently
-rw-r--r--src/fs/gnunet-fs-gtk-event_handler.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index c0c9fbbc..301e01e7 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -767,7 +767,7 @@ start_download (GtkTreeView * tree_view, GtkTreePath * path,
767 struct GNUNET_CONTAINER_MetaData *meta; 767 struct GNUNET_CONTAINER_MetaData *meta;
768 struct SearchResult *sr; 768 struct SearchResult *sr;
769 gchar *mime; 769 gchar *mime;
770 struct DownloadContext *dlc; 770 struct DownloadContext *dc;
771 char *buf; 771 char *buf;
772 char *tmp; 772 char *tmp;
773 size_t tmplen; 773 size_t tmplen;
@@ -835,18 +835,17 @@ start_download (GtkTreeView * tree_view, GtkTreePath * path,
835 GNUNET_free_non_null (filename); 835 GNUNET_free_non_null (filename);
836 836
837 /* now setup everything for the save-as dialog */ 837 /* now setup everything for the save-as dialog */
838 dlc = GNUNET_malloc (sizeof (struct DownloadContext)); 838 dc = GNUNET_malloc (sizeof (struct DownloadContext));
839 dlc->uri = GNUNET_FS_uri_dup (uri); 839 dc->uri = GNUNET_FS_uri_dup (uri);
840 dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL; 840 dc->mime = mime;
841 dlc->filename = buf; 841 dc->filename = buf;
842 dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); 842 dc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta);
843 dlc->rr = gtk_tree_row_reference_new (tm, path); 843 dc->rr = gtk_tree_row_reference_new (tm, path);
844 dlc->sr = sr->result; 844 dc->sr = sr->result;
845 dlc->anonymity = -1; 845 dc->anonymity = -1;
846 dlc->is_recursive = sdc->recursive; 846 dc->is_recursive = sdc->recursive;
847 dlc->tab = tab; 847 dc->tab = tab;
848 GNUNET_FS_GTK_open_download_as_dialog (dlc); 848 GNUNET_FS_GTK_open_download_as_dialog (dc);
849 g_free (mime);
850} 849}
851 850
852 851