[libgnomekbd] Provide icons for caps/num/scroll locks
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Provide icons for caps/num/scroll locks
- Date: Tue, 18 Jan 2011 22:07:10 +0000 (UTC)
commit f38fa54b97cae56afd4c23f0a6b87d40eac1e23d
Author: Sergey V. Udaltsov <svu gnome org>
Date: Tue Jan 18 22:05:07 2011 +0000
Provide icons for caps/num/scroll locks
The icons are installed by libgnomekbd itself, can be used by apps
libgnomekbd/Makefile.am | 6 ++
libgnomekbd/gkbd-indicator-config.c | 2 +
libgnomekbd/keyboard-caps-lock.svg | 92 ++++++++++++++++++++++++++++++++++
libgnomekbd/keyboard-num-lock.svg | 80 +++++++++++++++++++++++++++++
libgnomekbd/keyboard-scroll-lock.svg | 80 +++++++++++++++++++++++++++++
5 files changed, 260 insertions(+), 0 deletions(-)
---
diff --git a/libgnomekbd/Makefile.am b/libgnomekbd/Makefile.am
index fe760d3..57ea402 100644
--- a/libgnomekbd/Makefile.am
+++ b/libgnomekbd/Makefile.am
@@ -3,6 +3,11 @@ lib_LTLIBRARIES = libgnomekbd.la libgnomekbdui.la
uidir="$(pkgdatadir)/ui"
ui_DATA = show-layout.ui
+iconsdir="$(pkgdatadir)/icons"
+icons_DATA = keyboard-caps-lock.svg \
+ keyboard-num-lock.svg \
+ keyboard-scroll-lock.svg
+
gsettings_SCHEMAS = org.gnome.libgnomekbd.desktop.gschema.xml \
org.gnome.libgnomekbd.keyboard.gschema.xml \
org.gnome.libgnomekbd.gschema.xml
@@ -19,6 +24,7 @@ common_CFLAGS = \
-DSYS_PLUGIN_DIR=\"$(libdir)/gnomekbd/\" \
-DG_LOG_DOMAIN=\"GnomeKbdIndicator\" \
-DDATADIR=\"$(datadir)\" \
+ -DICONSDIR=\"$(iconsdir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DLIBDIR=\"$(libdir)\"
diff --git a/libgnomekbd/gkbd-indicator-config.c b/libgnomekbd/gkbd-indicator-config.c
index 72abfb3..a17ffb7 100644
--- a/libgnomekbd/gkbd-indicator-config.c
+++ b/libgnomekbd/gkbd-indicator-config.c
@@ -256,6 +256,8 @@ gkbd_indicator_config_init (GkbdIndicatorConfig * ind_config,
"icons/flags",
NULL));
g_free (sp);
+
+ gtk_icon_theme_prepend_search_path (ind_config->icon_theme, ICONSDIR);
}
void
diff --git a/libgnomekbd/keyboard-caps-lock.svg b/libgnomekbd/keyboard-caps-lock.svg
new file mode 100644
index 0000000..c525f72
--- /dev/null
+++ b/libgnomekbd/keyboard-caps-lock.svg
@@ -0,0 +1,92 @@
+<?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="16"
+ height="16"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48+devel r9942 custom"
+ sodipodi:docname="keyboard-caps-lock.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="22.627417"
+ inkscape:cx="4.3430107"
+ inkscape:cy="7.2296621"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ borderlayer="true"
+ inkscape:showpageshadow="false"
+ inkscape:window-width="930"
+ inkscape:window-height="681"
+ inkscape:window-x="1892"
+ inkscape:window-y="272"
+ inkscape:window-maximized="0"
+ showborder="false">
+ <inkscape:grid
+ type="xygrid"
+ id="grid37560"
+ empspacing="5"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true" />
+ </sodipodi:namedview>
+ <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,-1036.3622)">
+ <rect
+ style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
+ id="rect8549"
+ width="16"
+ height="16"
+ x="0"
+ y="1036.3622"
+ inkscape:label="a" />
+ <path
+ style="color:#bebebe;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible"
+ d="M 2.0625,0 C 0.91177,0 0,0.9118 0,2.0625 l 0,11.875 C 0,15.0882 0.91177,16 2.0625,16 l 11.875,0 C 15.08823,16 16,15.0882 16,13.9375 L 16,2.0625 C 16,0.9118 15.08823,0 13.9375,0 z"
+ transform="translate(0,1036.3622)"
+ id="path8551"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sssssssss" />
+ <path
+ sodipodi:type="arc"
+ style="color:#000000;fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="path38100"
+ sodipodi:cx="3"
+ sodipodi:cy="4"
+ sodipodi:rx="2"
+ sodipodi:ry="2"
+ d="M 5,4 A 2,2 0 1 1 1,4 2,2 0 1 1 5,4 z"
+ transform="translate(0,1036.3622)" />
+ </g>
+</svg>
diff --git a/libgnomekbd/keyboard-num-lock.svg b/libgnomekbd/keyboard-num-lock.svg
new file mode 100644
index 0000000..5ae42c4
--- /dev/null
+++ b/libgnomekbd/keyboard-num-lock.svg
@@ -0,0 +1,80 @@
+<?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="16"
+ height="16"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48+devel r9942 custom"
+ sodipodi:docname="keyboard-caps-lock.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="22.627417"
+ inkscape:cx="4.3430107"
+ inkscape:cy="7.2296621"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ borderlayer="true"
+ inkscape:showpageshadow="false"
+ inkscape:window-width="930"
+ inkscape:window-height="681"
+ inkscape:window-x="1892"
+ inkscape:window-y="272"
+ inkscape:window-maximized="0"
+ showborder="false">
+ <inkscape:grid
+ type="xygrid"
+ id="grid37560"
+ empspacing="5"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true" />
+ </sodipodi:namedview>
+ <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,-1036.3622)">
+ <rect
+ style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
+ id="rect8549"
+ width="16"
+ height="16"
+ x="0"
+ y="1036.3622"
+ inkscape:label="a" />
+ <path
+ style="color:#bebebe;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible"
+ d="M 2.0625 0 C 0.91177 0 0 0.9118 0 2.0625 L 0 13.9375 C 0 15.0882 0.91177 16 2.0625 16 L 13.9375 16 C 15.08823 16 16 15.0882 16 13.9375 L 16 2.0625 C 16 0.9118 15.08823 0 13.9375 0 L 2.0625 0 z M 3 1 C 4.1045695 1 5 1.8954305 5 3 C 5 4.1045695 4.1045695 5 3 5 C 1.8954305 5 1 4.1045695 1 3 C 1 1.8954305 1.8954305 1 3 1 z M 8 1 C 9.1045695 1 10 1.8954305 10 3 C 10 4.1045695 9.1045695 5 8 5 C 6.8954305 5 6 4.1045695 6 3 C 6 1.8954305 6.8954305 1 8 1 z M 13 1 C 14.10457 1 15 1.8954305 15 3 C 15 4.1045695 14.10457 5 13 5 C 11.89543 5 11 4.1045695 11 3 C 11 1.8954305 11.89543 1 13 1 z M 3 6 C 4.1045695 6 5 6.8954305 5 8 C 5 9.1045695 4.1045695 10 3 10 C 1.8954305 10 1 9.1045695 1 8 C 1 6.8954305 1.8954305 6 3 6 z M 8 6 C 9.1045695 6 10 6.8954305 10 8 C 10 9.1045695 9.1045695 10 8 10 C 6.8954305 10 6 9.1045695 6 8 C 6 6.8954305 6.8954305 6 8 6 z M 13 6 C 14.10457 6 15 6.8954305 15 8 C 15 9.1045695 14.10457 10 13 10 C 11.89543 10 11 9.1045695 11 8 C 11 6.8954305 11.89543 6
13 6 z M 3 11 C 4.1045695 11 5 11.89543 5 13 C 5 14.10457 4.1045695 15 3 15 C 1.8954305 15 1 14.10457 1 13 C 1 11.89543 1.8954305 11 3 11 z M 8 11 C 9.1045695 11 10 11.89543 10 13 C 10 14.10457 9.1045695 15 8 15 C 6.8954305 15 6 14.10457 6 13 C 6 11.89543 6.8954305 11 8 11 z M 13 11 C 14.10457 11 15 11.89543 15 13 C 15 14.10457 14.10457 15 13 15 C 11.89543 15 11 14.10457 11 13 C 11 11.89543 11.89543 11 13 11 z "
+ transform="translate(0,1036.3622)"
+ id="path8551" />
+ </g>
+</svg>
diff --git a/libgnomekbd/keyboard-scroll-lock.svg b/libgnomekbd/keyboard-scroll-lock.svg
new file mode 100644
index 0000000..80e2923
--- /dev/null
+++ b/libgnomekbd/keyboard-scroll-lock.svg
@@ -0,0 +1,80 @@
+<?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="16"
+ height="16"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48+devel r9942 custom"
+ sodipodi:docname="keyboard-num-lock.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1"
+ inkscape:cx="6.9765202"
+ inkscape:cy="15.444756"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ borderlayer="true"
+ inkscape:showpageshadow="false"
+ inkscape:window-width="930"
+ inkscape:window-height="681"
+ inkscape:window-x="1892"
+ inkscape:window-y="272"
+ inkscape:window-maximized="0"
+ showborder="false">
+ <inkscape:grid
+ type="xygrid"
+ id="grid37560"
+ empspacing="5"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true" />
+ </sodipodi:namedview>
+ <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,-1036.3622)">
+ <rect
+ style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
+ id="rect8549"
+ width="16"
+ height="16"
+ x="0"
+ y="1036.3622"
+ inkscape:label="a" />
+ <path
+ style="color:#bebebe;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible"
+ d="M 2.0625 0 C 0.91177 0 0 0.9118 0 2.0625 L 0 13.9375 C 0 15.0882 0.91177 16 2.0625 16 L 13.9375 16 C 15.08823 16 16 15.0882 16 13.9375 L 16 2.0625 C 16 0.9118 15.08823 0 13.9375 0 L 2.0625 0 z M 8 2 L 9 2 L 9 8 L 11 8 L 11 14 L 9 14 L 9 15 L 8 15 L 8 14 L 6 14 L 6 8 L 8 8 L 8 2 z "
+ transform="translate(0,1036.3622)"
+ id="path8551" />
+ </g>
+</svg>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]