[totem] grilo: Don't show "metadata-store" in Search items
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Don't show "metadata-store" in Search items
- Date: Sun, 26 Jan 2014 16:51:01 +0000 (UTC)
commit eb7e2f4a39d636460d69c65b7b9d343cb0976317
Author: Bastien Nocera <hadess hadess net>
Date: Sun Jan 26 16:11:42 2014 +0100
grilo: Don't show "metadata-store" in Search items
src/plugins/grilo/totem-grilo.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index f051f56..f7f56f5 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -980,6 +980,23 @@ source_is_browse_blacklisted (GrlSource *source)
}
static gboolean
+source_is_search_blacklisted (GrlSource *source)
+{
+ const char *id;
+ const char const *sources[] = {
+ "grl-metadata-store",
+ NULL
+ };
+
+ id = grl_source_get_id (source);
+ g_assert (id);
+
+ return strv_has_prefix (sources, id);
+}
+
+
+
+static gboolean
find_media_cb (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
@@ -1172,7 +1189,8 @@ source_added_cb (GrlRegistry *registry,
g_signal_connect (G_OBJECT (source), "content-changed",
G_CALLBACK (content_changed_cb), self);
}
- if (ops & GRL_OP_SEARCH) {
+ if ((ops & GRL_OP_SEARCH) &&
+ !source_is_search_blacklisted (source)) {
totem_search_entry_add_source (TOTEM_SEARCH_ENTRY (self->priv->search_entry),
grl_source_get_id (source),
name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]