aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fs/download.c21
-rw-r--r--src/plugins/fs/fs.h1
-rw-r--r--src/plugins/fs/search.c3
3 files changed, 22 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 */
341void fs_download_completed(DownloadList * downloadContext) { 343void 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}
diff --git a/src/plugins/fs/fs.h b/src/plugins/fs/fs.h
index e859d12f..899f57e9 100644
--- a/src/plugins/fs/fs.h
+++ b/src/plugins/fs/fs.h
@@ -56,6 +56,7 @@ enum {
56 SEARCH_PIXBUF, 56 SEARCH_PIXBUF,
57 SEARCH_URI, 57 SEARCH_URI,
58 SEARCH_META, 58 SEARCH_META,
59 SEARCH_CELL_BG_COLOR,
59 SEARCH_INTERNAL, 60 SEARCH_INTERNAL,
60 SEARCH_INTERNAL_PARENT, 61 SEARCH_INTERNAL_PARENT,
61 SEARCH_NUM, 62 SEARCH_NUM,
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index f7cc87d4..386c6297 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -123,6 +123,7 @@ void addEntryToSearchTree(SearchList * searchContext,
123 SEARCH_PIXBUF, pixbuf, 123 SEARCH_PIXBUF, pixbuf,
124 SEARCH_URI, ECRS_dupUri(info->uri), 124 SEARCH_URI, ECRS_dupUri(info->uri),
125 SEARCH_META, ECRS_dupMetaData(info->meta), 125 SEARCH_META, ECRS_dupMetaData(info->meta),
126 SEARCH_CELL_BG_COLOR, "white",
126 SEARCH_INTERNAL, searchContext, 127 SEARCH_INTERNAL, searchContext,
127 SEARCH_INTERNAL_PARENT, downloadParent, 128 SEARCH_INTERNAL_PARENT, downloadParent,
128 -1); 129 -1);
@@ -233,6 +234,7 @@ fs_search_started(struct FSUI_SearchList * fsui_list,
233 GDK_TYPE_PIXBUF, /* preview */ 234 GDK_TYPE_PIXBUF, /* preview */
234 G_TYPE_POINTER, /* url */ 235 G_TYPE_POINTER, /* url */
235 G_TYPE_POINTER, /* meta */ 236 G_TYPE_POINTER, /* meta */
237 G_TYPE_STRING, /* bg-color */
236 G_TYPE_POINTER, /* internal: search list */ 238 G_TYPE_POINTER, /* internal: search list */
237 G_TYPE_POINTER); /* internal: download parent list */ 239 G_TYPE_POINTER); /* internal: download parent list */
238 240
@@ -268,6 +270,7 @@ fs_search_started(struct FSUI_SearchList * fsui_list,
268 _("Size"), 270 _("Size"),
269 renderer, 271 renderer,
270 "text", SEARCH_HSIZE, 272 "text", SEARCH_HSIZE,
273 "cell-background", SEARCH_CELL_BG_COLOR,
271 NULL); 274 NULL);
272 column = gtk_tree_view_get_column(list->treeview, 275 column = gtk_tree_view_get_column(list->treeview,
273 col - 1); 276 col - 1);