file chooser: Show progess spinner even if not empty
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jul 2015 04:15:44 +0000 (00:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jul 2015 04:15:44 +0000 (00:15 -0400)
With the previous approach, we could only show the spinner
before we had any results. With the new approach, we can just
leave the timeout in place and always show the spinner until
the search is done.

gtk/gtkfilechooserwidget.c

index a13179bd0454349012f1883cc311af43875542e5..84f860a5ed4fcaa53bd769efd7c31ce6a18dc1fb 100644 (file)
@@ -6964,12 +6964,6 @@ search_engine_hits_added_cb (GtkSearchEngine      *engine,
   g_list_free_full (files_with_info, g_object_unref);
   g_list_free_full (infos, g_object_unref);
 
-  if (impl->priv->show_progress_timeout)
-    {
-      g_source_remove (impl->priv->show_progress_timeout);
-      impl->priv->show_progress_timeout = 0;
-    }
-
   gtk_stack_set_visible_child_name (GTK_STACK (impl->priv->browse_files_stack), "list");
 }