From e6ea58141a79a66ad494b2a97eff3d108c2d50c5 Mon Sep 17 00:00:00 2001 From: Dave Young 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 --- 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 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + 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