281 lines
11 KiB
Diff
281 lines
11 KiB
Diff
From e6ea58141a79a66ad494b2a97eff3d108c2d50c5 Mon Sep 17 00:00:00 2001
|
|
From: Dave Young <dyoung@redhat.com>
|
|
Date: Fri, 5 Jun 2015 10:08:02 +0800
|
|
Subject: [PATCH] Add kdump spoke icon
|
|
|
|
Resolves: bz1200678
|
|
|
|
Previously we use gnome icon, people reported that the icon is bad because it
|
|
is always a sad face.
|
|
|
|
Updated with another icon for kdump use only.
|
|
|
|
Signed-off-by: Dave Young <dyoung@redhat.com>
|
|
---
|
|
Makefile | 4 +
|
|
com_redhat_kdump/gui/spokes/kdump.py | 2 +-
|
|
kdump.svg | 202 +++++++++++++++++++++++++++
|
|
test/packbootiso.sh | 1 +
|
|
4 files changed, 208 insertions(+), 1 deletion(-)
|
|
create mode 100644 kdump.svg
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index f7c2fa8..1982f5b 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -10,6 +10,7 @@ FILES = $(ADDON) \
|
|
po \
|
|
Makefile \
|
|
README \
|
|
+ kdump.svg \
|
|
version.sh
|
|
|
|
EXCLUDES = \
|
|
@@ -26,10 +27,13 @@ DISTNAME = $(NAME)-$(VERSION)
|
|
ADDONDIR = /usr/share/anaconda/addons/
|
|
DISTBALL = $(DISTNAME).tar.gz
|
|
NUM_PROCS = $$(getconf _NPROCESSORS_ONLN)
|
|
+ICONDIR = /usr/share/icons/hicolor/scalable/apps/
|
|
|
|
install: version.sh
|
|
mkdir -p $(DESTDIR)$(ADDONDIR)
|
|
+ mkdir -p $(DESTDIR)$(ICONDIR)
|
|
cp -rv $(ADDON) $(DESTDIR)$(ADDONDIR)
|
|
+ install -c -m 644 kdump.svg $(DESTDIR)$(ICONDIR)
|
|
$(MAKE) install-po-files
|
|
|
|
uninstall:
|
|
diff --git a/com_redhat_kdump/gui/spokes/kdump.py b/com_redhat_kdump/gui/spokes/kdump.py
|
|
index 9b2e731..7a52b46 100644
|
|
--- a/com_redhat_kdump/gui/spokes/kdump.py
|
|
+++ b/com_redhat_kdump/gui/spokes/kdump.py
|
|
@@ -44,7 +44,7 @@ class KdumpSpoke(NormalSpoke):
|
|
helpFile = "KdumpSpoke.xml"
|
|
translationDomain = "kdump-anaconda-addon"
|
|
|
|
- icon = "computer-fail-symbolic"
|
|
+ icon = "kdump"
|
|
title = N_("_KDUMP")
|
|
category = SystemCategory
|
|
|
|
diff --git a/kdump.svg b/kdump.svg
|
|
new file mode 100644
|
|
index 0000000..0386a6f
|
|
--- /dev/null
|
|
+++ b/kdump.svg
|
|
@@ -0,0 +1,202 @@
|
|
+<?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"
|
|
+ id="svg2"
|
|
+ version="1.1"
|
|
+ inkscape:version="0.91 r13725"
|
|
+ width="64"
|
|
+ height="64"
|
|
+ viewBox="0 0 64 64"
|
|
+ sodipodi:docname="kdump.svg"
|
|
+ inkscape:export-filename="/Users/snow/Desktop/RHEL7-kdump"
|
|
+ inkscape:export-xdpi="126.703"
|
|
+ inkscape:export-ydpi="126.703">
|
|
+ <metadata
|
|
+ id="metadata8">
|
|
+ <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>
|
|
+ <defs
|
|
+ id="defs6" />
|
|
+ <sodipodi:namedview
|
|
+ pagecolor="#ffffff"
|
|
+ bordercolor="#666666"
|
|
+ borderopacity="1"
|
|
+ objecttolerance="10"
|
|
+ gridtolerance="10"
|
|
+ guidetolerance="10"
|
|
+ inkscape:pageopacity="0"
|
|
+ inkscape:pageshadow="2"
|
|
+ inkscape:window-width="1440"
|
|
+ inkscape:window-height="851"
|
|
+ id="namedview4"
|
|
+ showgrid="false"
|
|
+ inkscape:zoom="7.8203125"
|
|
+ inkscape:cx="61.89011"
|
|
+ inkscape:cy="33.133205"
|
|
+ inkscape:window-x="0"
|
|
+ inkscape:window-y="0"
|
|
+ inkscape:window-maximized="1"
|
|
+ inkscape:current-layer="svg2" />
|
|
+ <g
|
|
+ id="g4558"
|
|
+ transform="matrix(-0.01200035,0.4031479,-0.40315051,-0.01200027,264.16902,-296.78649)">
|
|
+ <g
|
|
+ transform="matrix(0.77251542,0.13871563,-0.13871563,0.77251542,212.91427,27.530304)"
|
|
+ id="g4347-4">
|
|
+ <circle
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:38.24825287;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-8"
|
|
+ cx="894.74286"
|
|
+ cy="516.98846"
|
|
+ r="73.277237" />
|
|
+ <g
|
|
+ id="g4341-1"
|
|
+ transform="matrix(0.91602888,0.40111234,-0.40111234,0.91602888,282.5304,-315.51091)">
|
|
+ <path
|
|
+ inkscape:transform-center-y="25.514067"
|
|
+ inkscape:transform-center-x="-62.177687"
|
|
+ d="m 968.17134,517.07208 a 73.277237,73.277237 0 0 1 -4.41916,25.06229"
|
|
+ sodipodi:open="true"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:ry="73.277237"
|
|
+ sodipodi:rx="73.277237"
|
|
+ sodipodi:cy="517.07208"
|
|
+ sodipodi:cx="894.8941"
|
|
+ sodipodi:type="arc"
|
|
+ id="path4149-6-3"
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ededed;stroke-width:38.2480011;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
|
+ <path
|
|
+ transform="matrix(0,-1,1,0,0,0)"
|
|
+ inkscape:transform-center-y="-62.17768"
|
|
+ inkscape:transform-center-x="-25.514029"
|
|
+ d="m -443.62041,894.86908 a 73.277237,73.277237 0 0 1 -4.41916,25.06229"
|
|
+ sodipodi:open="true"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:ry="73.277237"
|
|
+ sodipodi:rx="73.277237"
|
|
+ sodipodi:cy="894.86908"
|
|
+ sodipodi:cx="-516.89764"
|
|
+ sodipodi:type="arc"
|
|
+ id="path4149-6-6-3"
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ededed;stroke-width:38.2480011;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
|
+ <path
|
|
+ transform="matrix(0,1,-1,0,0,0)"
|
|
+ inkscape:transform-center-y="62.17771"
|
|
+ inkscape:transform-center-x="25.514044"
|
|
+ d="m 590.37434,-895.65582 a 73.277237,73.277237 0 0 1 -4.41915,25.06229"
|
|
+ sodipodi:open="true"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:ry="73.277237"
|
|
+ sodipodi:rx="73.277237"
|
|
+ sodipodi:cy="-895.65582"
|
|
+ sodipodi:cx="517.09711"
|
|
+ sodipodi:type="arc"
|
|
+ id="path4149-6-7-7"
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ededed;stroke-width:38.2480011;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
|
+ <path
|
|
+ transform="scale(-1,-1)"
|
|
+ inkscape:transform-center-y="-25.514021"
|
|
+ inkscape:transform-center-x="62.177687"
|
|
+ d="m -821.4655,-516.80084 a 73.277237,73.277237 0 0 1 -4.41916,25.06229"
|
|
+ sodipodi:open="true"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:ry="73.277237"
|
|
+ sodipodi:rx="73.277237"
|
|
+ sodipodi:cy="-516.80084"
|
|
+ sodipodi:cx="-894.74274"
|
|
+ sodipodi:type="arc"
|
|
+ id="path4149-6-7-1-0"
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ededed;stroke-width:38.2480011;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
|
+ </g>
|
|
+ <circle
|
|
+ r="97.60952"
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:3.68694615;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-8-6"
|
|
+ cx="894.74286"
|
|
+ cy="516.98846" />
|
|
+ </g>
|
|
+ <g
|
|
+ id="g4552">
|
|
+ <path
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-6-7-1-0-0"
|
|
+ sodipodi:type="arc"
|
|
+ sodipodi:cx="-980.75238"
|
|
+ sodipodi:cy="9.2112637"
|
|
+ sodipodi:rx="57.513161"
|
|
+ sodipodi:ry="57.513161"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:open="true"
|
|
+ d="m -923.23922,9.2112637 a 57.513161,57.513161 0 0 1 -3.46847,19.6706593"
|
|
+ inkscape:transform-center-x="53.411556"
|
|
+ inkscape:transform-center-y="-50.905574"
|
|
+ transform="matrix(-0.83071751,-0.55669419,0.55669419,-0.83071751,0,0)" />
|
|
+ <path
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-6-7-1-0-0-9"
|
|
+ sodipodi:type="arc"
|
|
+ sodipodi:cx="11.623063"
|
|
+ sodipodi:cy="-995.41547"
|
|
+ sodipodi:rx="57.513161"
|
|
+ sodipodi:ry="57.513161"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:open="true"
|
|
+ d="m 69.136224,-995.41547 a 57.513161,57.513161 0 0 1 -3.468468,19.67066"
|
|
+ inkscape:transform-center-x="50.905598"
|
|
+ inkscape:transform-center-y="53.41154"
|
|
+ transform="matrix(-0.55669419,0.83071751,-0.83071751,-0.55669419,0,0)" />
|
|
+ <path
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-6-7-1-0-0-9-9"
|
|
+ sodipodi:type="arc"
|
|
+ sodipodi:cx="1015.775"
|
|
+ sodipodi:cy="-3.1571906"
|
|
+ sodipodi:rx="57.513161"
|
|
+ sodipodi:ry="57.513161"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:open="true"
|
|
+ d="m 1073.2882,-3.1571906 a 57.513161,57.513161 0 0 1 -3.4685,19.6706596"
|
|
+ inkscape:transform-center-x="-53.411617"
|
|
+ inkscape:transform-center-y="50.90565"
|
|
+ transform="matrix(0.83071751,0.55669419,-0.55669419,0.83071751,0,0)" />
|
|
+ <path
|
|
+ style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bebebe;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
+ id="path4149-6-7-1-0-0-9-9-8"
|
|
+ sodipodi:type="arc"
|
|
+ sodipodi:cx="23.169399"
|
|
+ sodipodi:cy="1000.4084"
|
|
+ sodipodi:rx="57.513161"
|
|
+ sodipodi:ry="57.513161"
|
|
+ sodipodi:start="0"
|
|
+ sodipodi:end="0.34906585"
|
|
+ sodipodi:open="true"
|
|
+ d="m 80.68256,1000.4084 a 57.513161,57.513161 0 0 1 -3.468468,19.6706"
|
|
+ inkscape:transform-center-x="-50.905627"
|
|
+ inkscape:transform-center-y="-53.411632"
|
|
+ transform="matrix(0.55669419,-0.83071751,0.83071751,0.55669419,0,0)" />
|
|
+ </g>
|
|
+ </g>
|
|
+</svg>
|
|
diff --git a/test/packbootiso.sh b/test/packbootiso.sh
|
|
index b7086ef..341b36f 100644
|
|
--- a/test/packbootiso.sh
|
|
+++ b/test/packbootiso.sh
|
|
@@ -28,6 +28,7 @@ mkdir -p mnt/usr/share/anaconda/addons
|
|
rm -rf mnt/usr/share/anaconda/addons/com_redhat_kdump
|
|
find mnt/ -name kdump-anaconda-addon.mo -exec rm -f {} \;
|
|
cp -aRf kdump-anaconda-addon/com_redhat_kdump mnt/usr/share/anaconda/addons/
|
|
+cp -a kdump-anaconda-addon/kdump.svg mnt/usr/share/icons/hicolor/scalable/apps/
|
|
make -C kdump-anaconda-addon/po install DESTDIR=../../mnt
|
|
umount mnt
|
|
rm -rf kdump-anaconda-addon
|