[grilo-plugins] lua-factory: Add local icon for Radio France



commit 936c8154d98abf6168a91e05473cbc0c0538c6de
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 20 11:36:55 2015 +0100

    lua-factory: Add local icon for Radio France

 src/lua-factory/sources/Makefile.am                |    8 ++++++--
 .../sources/grl-radiofrance.gresource.xml          |    6 ++++++
 src/lua-factory/sources/grl-radiofrance.lua        |    2 +-
 src/lua-factory/sources/radiofrance.png            |  Bin 0 -> 8257 bytes
 4 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/lua-factory/sources/Makefile.am b/src/lua-factory/sources/Makefile.am
index 1dab706..01ff596 100644
--- a/src/lua-factory/sources/Makefile.am
+++ b/src/lua-factory/sources/Makefile.am
@@ -14,7 +14,8 @@ lua_sources_DATA =                                    \
        grl-guardianvideos.lua                          \
        grl-musicbrainz.lua                             \
        grl-euronews.gresource                          \
-       grl-guardianvideos.gresource
+       grl-guardianvideos.gresource                    \
+       grl-radiofrance.gresource
 
 lua_sourcesdir = $(datadir)/$(LUA_FACTORY_SOURCE_LOCATION)
 
@@ -24,7 +25,10 @@ grl-euronews.gresource: grl-guardianvideos.gresource.xml
 grl-guardianvideos.gresource: grl-guardianvideos.gresource.xml
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/grl-guardianvideos.gresource.xml
 
-CLEANFILES = grl-euronews.gresource grl-guardianvideos.gresource
+grl-radiofrance.gresource: grl-radiofrance.gresource.xml
+       $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/grl-radiofrance.gresource.xml
+
+CLEANFILES = grl-euronews.gresource grl-guardianvideos.gresource grl-radiofrance.gresource
 
 EXTRA_DIST += $(lua_sources_DATA)
 
diff --git a/src/lua-factory/sources/grl-radiofrance.gresource.xml 
b/src/lua-factory/sources/grl-radiofrance.gresource.xml
new file mode 100644
index 0000000..657ad36
--- /dev/null
+++ b/src/lua-factory/sources/grl-radiofrance.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/org/gnome/grilo/plugins/radiofrance">
+    <file compressed="false">radiofrance.png</file>
+  </gresource>
+</gresources>
diff --git a/src/lua-factory/sources/grl-radiofrance.lua b/src/lua-factory/sources/grl-radiofrance.lua
index 3412847..a510b5a 100644
--- a/src/lua-factory/sources/grl-radiofrance.lua
+++ b/src/lua-factory/sources/grl-radiofrance.lua
@@ -34,7 +34,7 @@ source = {
   name = "Radio France",
   description = "A source for browsing Radio France radio stations",
   supported_keys = { "id", "thumbnail", "title", "url", "mime-type" },
-  icon = 'http://www.radiofrance.fr/sites/all/themes/custom/rftheme/logo.png',
+  icon = 'resource:///org/gnome/grilo/plugins/radiofrance/radiofrance.png',
   supported_media = 'audio',
   tags = { 'radio', 'country:fr', 'net:internet' }
 }
diff --git a/src/lua-factory/sources/radiofrance.png b/src/lua-factory/sources/radiofrance.png
new file mode 100644
index 0000000..2a3e7f7
Binary files /dev/null and b/src/lua-factory/sources/radiofrance.png differ


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