diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 23 |
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, | |||
2120 | static void | 2120 | static void |
2121 | mark_download_completed (struct DownloadEntry *de, uint64_t size) | 2121 | mark_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 | ||