aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-05 15:16:44 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-05 15:16:44 +0000
commitc76e0e5168bb2ab7ddb4ccb3e302af6c617c94b8 (patch)
tree932d4791ba26f664872556f1d186208f1914f915
parenta6f38f78c68c830737342b9c5b8f14627226bdca (diff)
downloadgnunet-gtk-c76e0e5168bb2ab7ddb4ccb3e302af6c617c94b8.tar.gz
gnunet-gtk-c76e0e5168bb2ab7ddb4ccb3e302af6c617c94b8.zip
-fix argument order, set availability to 100% also for empty files
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c
index 376e6a16..1a2f8306 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.c
+++ b/src/fs/gnunet-fs-gtk_event-handler.c
@@ -1046,8 +1046,8 @@ move_downloads_in_subtree (GtkTreeModel *tm,
1046 struct GNUNET_FS_Uri *uri; 1046 struct GNUNET_FS_Uri *uri;
1047 1047
1048 if (gtk_tree_model_iter_children (tm, 1048 if (gtk_tree_model_iter_children (tm,
1049 iter, 1049 &child,
1050 &child)) 1050 iter))
1051 { 1051 {
1052 do 1052 do
1053 { 1053 {
@@ -1313,8 +1313,8 @@ stop_downloads_in_subtree (GtkTreeModel *tm,
1313 1313
1314 ret = GNUNET_YES; 1314 ret = GNUNET_YES;
1315 if (gtk_tree_model_iter_children (tm, 1315 if (gtk_tree_model_iter_children (tm,
1316 iter, 1316 &child,
1317 &child)) 1317 iter))
1318 { 1318 {
1319 do 1319 do
1320 { 1320 {
@@ -2120,8 +2120,23 @@ mark_download_error (struct DownloadEntry *de,
2120static void 2120static void
2121mark_download_completed (struct DownloadEntry *de, uint64_t size) 2121mark_download_completed (struct DownloadEntry *de, uint64_t size)
2122{ 2122{
2123 GtkTreeIter iter;
2124 GtkTreePath *path;
2125
2123 de->is_done = GNUNET_YES; 2126 de->is_done = GNUNET_YES;
2124 change_download_color (de, "green"); 2127 change_download_color (de, "green");
2128 path = gtk_tree_row_reference_get_path (de->sr->rr);
2129 if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (de->sr->tab->ts), &iter, path))
2130 {
2131 GNUNET_break (0);
2132 gtk_tree_path_free (path);
2133 return;
2134 }
2135 gtk_tree_path_free (path);
2136 gtk_tree_store_set (de->sr->tab->ts, &iter,
2137 4, (guint) 100,
2138 5, (guint) 100,
2139 -1);
2125} 2140}
2126 2141
2127 2142