[totem] main: Better debug when removing items



commit 49ff12474f5593538da8fcfa3c9662dcfea3f8ed
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 14 15:44:54 2014 +0100

    main: Better debug when removing items

 src/totem-grilo.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 079c444..590ee4b 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1167,9 +1167,16 @@ content_removed (TotemGrilo   *self,
                GtkTreeIter *iter;
                char *str;
 
+               str = grl_media_serialize (media);
+               g_debug ("About to remove %s from the store", str);
+               g_free (str);
+
                if (find_media (model, media, &iter)) {
                        gtk_tree_store_remove (GTK_TREE_STORE (model), iter);
                        gtk_tree_iter_free (iter);
+               } else {
+                       g_debug ("Could not find '%s' in the store",
+                                grl_media_get_id (media));
                }
        }
 }


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