[totem] grilo: Clean up blacklist function
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Clean up blacklist function
- Date: Fri, 17 Jan 2014 09:13:27 +0000 (UTC)
commit edc632f8fc21bc098088ac5407df89603f72a1ba
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 17 09:28:42 2014 +0100
grilo: Clean up blacklist function
src/plugins/grilo/totem-grilo.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 5158ec0..c819232 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -81,13 +81,6 @@
#define TOTEM_GRILO_CONFIG_FILE "totem-grilo.conf"
-const gchar *BLACKLIST_SOURCES[] = { "grl-bookmarks",
- "grl-shoutcast",
- "grl-flickr",
- "grl-metadata-store",
- "grl-podcasts",
- NULL };
-
typedef struct {
Totem *totem;
GtkWindow *main_window;
@@ -846,9 +839,18 @@ item_activated_cb (GdMainView *view,
static gboolean
source_is_blacklisted (GrlSource *source)
{
- const gchar *id = grl_source_get_id (source);
- const gchar **s = BLACKLIST_SOURCES;
+ const char *id;
+ const char const *sources[] = {
+ "grl-bookmarks",
+ "grl-shoutcast",
+ "grl-flickr",
+ "grl-metadata-store",
+ "grl-podcasts",
+ NULL
+ };
+ const char **s = sources;
+ id = grl_source_get_id (source);
g_assert (id);
while (*s) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]