diff options
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r-- | src/plugins/fs/download.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index a853eb57..bc9e542a 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -259,8 +259,10 @@ fs_download_started(struct FSUI_DownloadList * fsui_dl, | |||
259 | = gtk_tree_row_reference_new(GTK_TREE_MODEL(sl_parent->tree), | 259 | = gtk_tree_row_reference_new(GTK_TREE_MODEL(sl_parent->tree), |
260 | path); | 260 | path); |
261 | gtk_tree_path_free(path); | 261 | gtk_tree_path_free(path); |
262 | /* TODO: extend search model with status; | 262 | gtk_tree_store_set(sl_parent->tree, |
263 | start to indicate active download! */ | 263 | &iter, |
264 | SEARCH_CELL_BG_COLOR, "yellow", | ||
265 | -1); | ||
264 | break; | 266 | break; |
265 | } | 267 | } |
266 | } while (TRUE == gtk_tree_model_iter_next(GTK_TREE_MODEL(sl_parent->tree), | 268 | } while (TRUE == gtk_tree_model_iter_next(GTK_TREE_MODEL(sl_parent->tree), |
@@ -339,7 +341,20 @@ void fs_download_update(DownloadList * list, | |||
339 | * possibly refresh directory listing. | 341 | * possibly refresh directory listing. |
340 | */ | 342 | */ |
341 | void fs_download_completed(DownloadList * downloadContext) { | 343 | void fs_download_completed(DownloadList * downloadContext) { |
342 | /* FIXME: update summary? / search list status entry (once added) */ | 344 | GtkTreeIter iter; |
345 | GtkTreePath * path; | ||
346 | |||
347 | if (downloadContext->searchViewRowReference != NULL) { | ||
348 | path = gtk_tree_row_reference_get_path(downloadContext->searchViewRowReference); | ||
349 | gtk_tree_model_get_iter(GTK_TREE_MODEL(downloadContext->searchList->tree), | ||
350 | &iter, | ||
351 | path); | ||
352 | gtk_tree_path_free(path); | ||
353 | gtk_tree_store_set(downloadContext->searchList->tree, | ||
354 | &iter, | ||
355 | SEARCH_CELL_BG_COLOR, "green", | ||
356 | -1); | ||
357 | } | ||
343 | downloadContext->has_terminated = YES; | 358 | downloadContext->has_terminated = YES; |
344 | refreshDirectoryViewFromDisk(downloadContext); | 359 | refreshDirectoryViewFromDisk(downloadContext); |
345 | } | 360 | } |