[grilo-plugins] bliptv: Add source icon
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] bliptv: Add source icon
- Date: Sat, 1 Feb 2014 00:07:37 +0000 (UTC)
commit 099afd9e9fa0e1b138b2d7050213020eb0a44a48
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 29 13:43:17 2014 +0100
bliptv: Add source icon
Icon by Jakub Steiner.
https://bugzilla.gnome.org/show_bug.cgi?id=723233
src/bliptv/Makefile.am | 15 ++++-
src/bliptv/bliptv.gresource.xml | 6 ++
src/bliptv/channel-bliptv.svg | 127 +++++++++++++++++++++++++++++++++++++++
src/bliptv/grl-bliptv.c | 7 ++
4 files changed, 153 insertions(+), 2 deletions(-)
---
diff --git a/src/bliptv/Makefile.am b/src/bliptv/Makefile.am
index 1d96cfb..0d577e9 100644
--- a/src/bliptv/Makefile.am
+++ b/src/bliptv/Makefile.am
@@ -25,7 +25,9 @@ libgrlbliptv_la_LDFLAGS = \
libgrlbliptv_la_SOURCES = \
grl-bliptv.c \
- grl-bliptv.h
+ grl-bliptv.h \
+ bliptvresources.h \
+ bliptvresources.c
extdir = $(GRL_PLUGINS_DIR)
bliptvxmldir = $(GRL_PLUGINS_DIR)
@@ -39,10 +41,19 @@ copy-xml-to-libs-dir: libgrlbliptv.la
all-local: copy-xml-to-libs-dir
-EXTRA_DIST = $(bliptvxml_DATA)
+bliptvresources.h: bliptv.gresource.xml
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/bliptv.gresource.xml \
+ --target=$@ --sourcedir=$(srcdir) --c-name _grl_bliptv --generate-header
+bliptvresources.c: bliptv.gresource.xml bliptvresources.h channel-bliptv.svg
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/bliptv.gresource.xml \
+ --target=$@ --sourcedir=$(srcdir) --c-name _grl_bliptv --generate-source
+
+EXTRA_DIST = $(bliptvxml_DATA) channel-bliptv.svg bliptv.gresource.xml
MAINTAINERCLEANFILES = \
*.in \
*~
DISTCLEANFILES = $(MAINTAINERCLEANFILES)
+
+CLEANFILES = bliptvresources.h bliptvresources.c
diff --git a/src/bliptv/bliptv.gresource.xml b/src/bliptv/bliptv.gresource.xml
new file mode 100644
index 0000000..8af7be4
--- /dev/null
+++ b/src/bliptv/bliptv.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/grilo/plugins/bliptv">
+ <file compressed="false">channel-bliptv.svg</file>
+ </gresource>
+</gresources>
diff --git a/src/bliptv/channel-bliptv.svg b/src/bliptv/channel-bliptv.svg
new file mode 100644
index 0000000..99cd0fe
--- /dev/null
+++ b/src/bliptv/channel-bliptv.svg
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="256"
+ height="256"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="channel-rai.svg">
+ <defs
+ id="defs4">
+ <clipPath
+ id="clipPath6193"
+ clipPathUnits="userSpaceOnUse">
+ <path
+ id="path6195"
+ d="m 1600,2252.8 5020,0 0,3650 -5020,0 0,-3650 z" />
+ </clipPath>
+ <linearGradient
+ id="linearGradient6181"
+ spreadMethod="pad"
+ gradientTransform="matrix(-3.593e-5,822,822,3.593e-5,411,0)"
+ gradientUnits="userSpaceOnUse"
+ y2="0"
+ x2="1"
+ y1="0"
+ x1="0">
+ <stop
+ id="stop6183"
+ offset="0"
+ style="stop-opacity:1;stop-color:#c01e25" />
+ <stop
+ id="stop6185"
+ offset="1"
+ style="stop-opacity:1;stop-color:#e62426" />
+ </linearGradient>
+ <clipPath
+ id="clipPath6177"
+ clipPathUnits="userSpaceOnUse">
+ <path
+ id="path6179"
+ d="M 8220,0 0,0 l 0,8220 8220,0 0,-8220 m -6620,5902.8 0,-3650 5020,0 0,3650 -5020,0" />
+ </clipPath>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#505050"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="1"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1"
+ inkscape:cx="222.0001"
+ inkscape:cy="70.020428"
+ inkscape:document-units="px"
+ inkscape:current-layer="g7288"
+ showgrid="false"
+ borderlayer="true"
+ inkscape:showpageshadow="false"
+ inkscape:window-width="2560"
+ inkscape:window-height="1374"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-796.36218)">
+ <g
+ transform="matrix(630.025,0,0,-458.9,-77.5125,1218.8747)"
+ id="g6197" />
+ <g
+ id="g7288"
+ transform="translate(551.5,989.9982)">
+ <g
+ id="g7299"
+ transform="matrix(0.89344262,0,0,0.89344262,-396.25,-32.797277)">
+ <path
+ transform="matrix(0.9172932,0,0,0.9172932,-479.97369,-175.98184)"
+ d="m 623,153 c 0,73.45387 -59.54613,133 -133,133 -73.45387,0 -133,-59.54613 -133,-133
0,-73.453872 59.54613,-133 133,-133 73.45387,0 133,59.546128 133,133 z"
+ sodipodi:ry="133"
+ sodipodi:rx="133"
+ sodipodi:cy="153"
+ sodipodi:cx="490"
+ id="path7297"
+
style="color:#000000;fill:#e22a26;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ sodipodi:type="arc" />
+ <g
+ transform="matrix(2.4651519,0,0,2.4651519,-152.67447,-132)"
+ id="g7271">
+ <g
+ id="Layer_2">
+ <g
+ id="g7276">
+ <path
+ style="fill:#ffffff"
+ inkscape:connector-curvature="0"
+ d="m 61.397,15.688 c -0.672,-2.514 -3.253,-4.007 -5.767,-3.336 -2.515,0.671 -4.008,3.253
-3.336,5.767 0.67,2.514 3.252,4.007 5.767,3.335 2.512,-0.67 4.006,-3.252 3.336,-5.766 l 0,0 z M 73.37,40.919
c -2.304,0.615 -4.668,-0.753 -5.283,-3.056 -0.615,-2.302 0.753,-4.667 3.057,-5.282 2.303,-0.615 4.668,0.753
5.282,3.056 0.614,2.303 -0.754,4.667 -3.056,5.282 l 0,0 z M 69.122,25.008 c -6.485,1.731 -10.339,8.392
-8.607,14.876 0.002,0.004 5.346,20.04 5.346,20.04 l 7.504,-2.004 -2.427,-9.091 c 1.452,0.159 2.957,0.061
4.454,-0.339 6.484,-1.73 10.337,-8.392 8.605,-14.876 C 82.266,27.13 75.606,23.277 69.122,25.008 l 0,0 z M
29.873,52.532 c -2.303,0.615 -4.668,-0.752 -5.283,-3.056 -0.614,-2.303 0.753,-4.667 3.056,-5.282 2.303,-0.615
4.667,0.754 5.282,3.057 0.616,2.302 -0.752,4.667 -3.055,5.281 l 0,0 z M 25.625,36.623 c -1.497,0.4
-2.851,1.064 -4.031,1.926 l -2.427,-9.09 -7.504,2.004 c 0,0 5.354,20.033 5.355,20.036 1.731,6.484
8.392,10.339 14.876,8.607 C 38.378,58.375 42.
231,51.713 40.5,45.229 38.769,38.745 32.109,34.891 25.625,36.623 l 0,0 z m 28.703,16.993 7.504,-2.004
-6.021,-22.547 -7.504,2.004 6.021,22.547 0,0 z m -9.516,2.54 7.504,-2.004 -8.36,-31.312 -7.504,2.004
8.36,31.312 0,0 z"
+ id="path7278" />
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/src/bliptv/grl-bliptv.c b/src/bliptv/grl-bliptv.c
index 1596b93..f047d7b 100644
--- a/src/bliptv/grl-bliptv.c
+++ b/src/bliptv/grl-bliptv.c
@@ -149,11 +149,18 @@ GRL_PLUGIN_REGISTER (grl_bliptv_plugin_init,
static GrlBliptvSource *
grl_bliptv_source_new (void)
{
+ GIcon *icon;
+ GFile *file;
+
+ file = g_file_new_for_uri ("resource:///org/gnome/grilo/plugins/bliptv/channel-bliptv.svg");
+ icon = g_file_icon_new (file);
+ g_object_unref (file);
return g_object_new (GRL_TYPE_BLIPTV_SOURCE,
"source-id", SOURCE_ID,
"source-name", SOURCE_NAME,
"source-desc", SOURCE_DESC,
"supported-media", GRL_MEDIA_TYPE_VIDEO,
+ "source-icon", icon,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]