[totem] main: Request source to start monitoring



commit 4cca0dda29a502827c9dae88957912c7a83754d1
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 14 16:13:17 2014 +0100

    main: Request source to start monitoring
    
    Some of them didn't send us notifications if we didn't request them
    explicitely.

 src/totem-grilo.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 3f4c01c..e13859f 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1228,9 +1228,12 @@ source_added_cb (GrlRegistry *registry,
                        monitor = TRUE;
                }
 
-               if (monitor)
+               if (monitor &&
+                   (ops & GRL_OP_NOTIFY_CHANGE)) {
+                       grl_source_notify_change_start (source, NULL);
                        g_signal_connect (G_OBJECT (source), "content-changed",
                                          G_CALLBACK (content_changed_cb), self);
+               }
        }
        if ((ops & GRL_OP_SEARCH) &&
            !source_is_search_blacklisted (source)) {


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