[totem] grilo: Hide YouTube from browse for now
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Hide YouTube from browse for now
- Date: Fri, 17 Jan 2014 17:03:09 +0000 (UTC)
commit 5d1771f1adf7fb4970a11c1c714872a479afd505
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 17 16:14:18 2014 +0100
grilo: Hide YouTube from browse for now
src/plugins/grilo/totem-grilo.c | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 36f95b2..f2df2ed 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -829,6 +829,29 @@ source_is_blacklisted (GrlSource *source)
return FALSE;
}
+static gboolean
+source_is_browse_blacklisted (GrlSource *source)
+{
+ const char *id;
+ const char const *sources[] = {
+ /* https://bugzilla.gnome.org/show_bug.cgi?id=722422 */
+ "grl-youtube",
+ NULL
+ };
+ const char **s = sources;
+
+ id = grl_source_get_id (source);
+ g_assert (id);
+
+ while (*s) {
+ if (g_str_has_prefix (id, *s))
+ return TRUE;
+ s++;
+ }
+
+ return FALSE;
+}
+
static void
source_added_cb (GrlRegistry *registry,
GrlSource *source,
@@ -858,7 +881,8 @@ source_added_cb (GrlRegistry *registry,
name = grl_source_get_name (source);
ops = grl_source_supported_operations (source);
- if (ops & GRL_OP_BROWSE) {
+ if (ops & GRL_OP_BROWSE &&
+ !source_is_browse_blacklisted (source)) {
const GdkPixbuf *icon;
icon = totem_grilo_get_box_icon ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]