[gthumb] search: show the search status in the list view



commit bd022dee71616d91a50475c1c3c550d8375df767
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat May 22 10:11:34 2021 +0200

    search: show the search status in the list view

 extensions/search/gth-search-task.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/extensions/search/gth-search-task.c b/extensions/search/gth-search-task.c
index d4afbe7e..1827ce18 100644
--- a/extensions/search/gth-search-task.c
+++ b/extensions/search/gth-search-task.c
@@ -109,6 +109,8 @@ save_search_result_copy_done_cb (void     **buffer,
 
        task->priv->io_operation = FALSE;
 
+       if (task->priv->n_files == 0)
+               gth_file_list_clear (GTH_FILE_LIST (gth_browser_get_file_list (task->priv->browser)), _("No 
file found"));
        gth_browser_update_extra_widget (task->priv->browser);
        gtk_widget_hide (task->priv->dialog);
        gth_task_completed (GTH_TASK (task), task->priv->error);
@@ -328,6 +330,8 @@ browser_location_ready_cb (GthBrowser    *browser,
 
        task->priv->n_files = 0;
 
+       gth_file_list_clear (GTH_FILE_LIST (gth_browser_get_file_list (browser)), _("Searching…"));
+
        task->priv->dialog = gth_browser_get_list_info_bar (browser);
        gth_info_bar_set_icon_name (GTH_INFO_BAR (task->priv->dialog), "edit-find-symbolic", 
GTK_ICON_SIZE_BUTTON);
        gth_info_bar_set_primary_text (GTH_INFO_BAR (task->priv->dialog), _("Searching…"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]