[totem] grilo: Mark application as busy when browsing/searching



commit 37b5cc9905e4d298034b8fb636c6a2548fb7a4d0
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Jan 26 21:08:30 2014 +0100

    grilo: Mark application as busy when browsing/searching
    
    Gives some feedback on online operations.

 src/plugins/grilo/totem-grilo.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index f7f56f5..dc42318 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -580,6 +580,7 @@ browse_cb (GrlSource *source,
        }
 
        if (remaining == 0) {
+               g_application_unmark_busy (g_application_get_default ());
                gtk_tree_row_reference_free (bud->ref_parent);
                g_object_unref (bud->totem_grilo);
                g_slice_free (BrowseUserData, bud);
@@ -620,6 +621,7 @@ browse (TotemGriloPlugin *self,
                bud->ref_parent = gtk_tree_row_reference_new (model, path);
        bud->model = g_object_ref (model);
 
+       g_application_mark_busy (g_application_get_default ());
        grl_source_browse (source,
                           container,
                           self->priv->metadata_keys,
@@ -695,6 +697,7 @@ search_cb (GrlSource *source,
        }
 
        if (remaining == 0) {
+               g_application_unmark_busy (g_application_get_default ());
                self->priv->search_id = 0;
                gtk_widget_set_sensitive (self->priv->search_entry, TRUE);
                update_search_thumbnails (self);
@@ -733,6 +736,9 @@ search_more (TotemGriloPlugin *self)
        gtk_widget_set_sensitive (self->priv->search_entry, FALSE);
        self->priv->search_page++;
        self->priv->search_remaining = PAGE_SIZE;
+
+       g_application_mark_busy (g_application_get_default ());
+
        if (self->priv->search_source != NULL) {
                self->priv->search_id =
                        grl_source_search (self->priv->search_source,


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