Commit 72b79069 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

search: show the matching files during the search operation

parent ccfaddec
...@@ -200,9 +200,20 @@ for_each_file_func (GFile *file, ...@@ -200,9 +200,20 @@ for_each_file_func (GFile *file,
file_data = gth_file_data_new (file, info); file_data = gth_file_data_new (file, info);
if (gth_test_match (GTH_TEST (task->priv->test), file_data)) { if (gth_test_match (GTH_TEST (task->priv->test), file_data)) {
GList *file_list;
gth_catalog_insert_file (GTH_CATALOG (task->priv->search), file_data->file, -1); gth_catalog_insert_file (GTH_CATALOG (task->priv->search), file_data->file, -1);
task->priv->n_files++; task->priv->n_files++;
update_secondary_text (task); update_secondary_text (task);
file_list = g_list_prepend (NULL, file_data->file);
gth_monitor_folder_changed (gth_main_get_default_monitor (),
g_list_free (file_list);
} }
g_object_unref (file_data); g_object_unref (file_data);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment