aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/upload.c')
-rw-r--r--src/plugins/fs/upload.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c
index 0796c7f3..9a7913f9 100644
--- a/src/plugins/fs/upload.c
+++ b/src/plugins/fs/upload.c
@@ -97,13 +97,12 @@ fs_upload_aborted (UploadList * list)
97 gtk_tree_model_get_iter (GTK_TREE_MODEL (upload_summary), &iter, path); 97 gtk_tree_model_get_iter (GTK_TREE_MODEL (upload_summary), &iter, path);
98 gtk_tree_path_free (path); 98 gtk_tree_path_free (path);
99 gtk_tree_store_set (upload_summary, &iter, 99 gtk_tree_store_set (upload_summary, &iter,
100 UPLOAD_URISTRING, _("Aborted."), 100 UPLOAD_URISTRING, _("Aborted."),
101 UPLOAD_PROGRESS, 0, 101 UPLOAD_PROGRESS, 0, -1);
102 -1);
103} 102}
104 103
105void 104void
106fs_upload_error (UploadList * list, const char * emsg) 105fs_upload_error (UploadList * list, const char *emsg)
107{ 106{
108 GtkTreeIter iter; 107 GtkTreeIter iter;
109 GtkTreePath *path; 108 GtkTreePath *path;
@@ -112,17 +111,14 @@ fs_upload_error (UploadList * list, const char * emsg)
112 111
113 list->has_terminated = GNUNET_YES; 112 list->has_terminated = GNUNET_YES;
114 list->uri = NULL; 113 list->uri = NULL;
115 len = strlen(_("Error uploading file: `%s'")) + strlen(emsg) + 2; 114 len = strlen (_("Error uploading file: `%s'")) + strlen (emsg) + 2;
116 us = GNUNET_malloc(len); 115 us = GNUNET_malloc (len);
117 GNUNET_snprintf(us, len, 116 GNUNET_snprintf (us, len, _("Error uploading file: `%s'"), emsg);
118 _("Error uploading file: `%s'"),
119 emsg);
120 path = gtk_tree_row_reference_get_path (list->summaryViewRowReference); 117 path = gtk_tree_row_reference_get_path (list->summaryViewRowReference);
121 gtk_tree_model_get_iter (GTK_TREE_MODEL (upload_summary), &iter, path); 118 gtk_tree_model_get_iter (GTK_TREE_MODEL (upload_summary), &iter, path);
122 gtk_tree_path_free (path); 119 gtk_tree_path_free (path);
123 gtk_tree_store_set (upload_summary, &iter, 120 gtk_tree_store_set (upload_summary, &iter,
124 UPLOAD_URISTRING, us, 121 UPLOAD_URISTRING, us, UPLOAD_PROGRESS, 0, -1);
125 UPLOAD_PROGRESS, 0, -1);
126 GNUNET_free (us); 122 GNUNET_free (us);
127} 123}
128 124