[totem] main: Don't allow adding directories to the recent view



commit 4e825fea3003d6c40db1bace0a808f4cba2d9360
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 17 13:45:25 2014 +0100

    main: Don't allow adding directories to the recent view

 src/totem-grilo.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index f7a727e..94e54ae 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -2449,6 +2449,11 @@ totem_grilo_add_item_to_recent (TotemGrilo *self,
                                               options);
                if (title)
                        grl_media_set_title (media, title);
+
+               /* We don't handle directories yet */
+               if (media == GRL_IS_MEDIA_BOX (media))
+                       g_clear_object (&media);
+
                g_object_unref (options);
        }
 


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