[gnome-music] Use icons developed for this GNOME Music fixes #697929
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Use icons developed for this GNOME Music fixes #697929
- Date: Tue, 7 May 2013 20:54:54 +0000 (UTC)
commit 5aa2809f14156d3b473250fe16c313e5ecbdb47b
Author: Seif Lotfy <seif lotfy com>
Date: Tue May 7 22:52:16 2013 +0200
Use icons developed for this GNOME Music
fixes #697929
data/Makefile.am | 36 +++++++++++++++++++++++++++++++++++-
data/gnome-music.desktop.in | 2 +-
2 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index e43f23e..8985fb2 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,16 +8,50 @@ resource_DATA = gnome-music.gresource
appsdir = $(datadir)/applications
apps_DATA = gnome-music.desktop
+# icons
+icon16dir = $(datadir)/icons/hicolor/16x16/apps
+icon16_DATA = icons/hicolor/16x16/apps/gnome-music.png
+icon22dir = $(datadir)/icons/hicolor/22x22/apps
+icon22_DATA = icons/hicolor/22x22/apps/gnome-music.png
+icon32dir = $(datadir)/icons/hicolor/32x32/apps
+icon32_DATA = icons/hicolor/32x32/apps/gnome-music.png
+icon48dir = $(datadir)/icons/hicolor/48x48/apps
+icon48_DATA = icons/hicolor/48x48/apps/gnome-music.png
+icon256dir = $(datadir)/icons/hicolor/256x256/apps
+icon256_DATA = icons/hicolor/256x256/apps/gnome-music.png
+icon_files = \
+ $(icon16_DATA) \
+ $(icon22_DATA) \
+ $(icon32_DATA) \
+ $(icon48_DATA) \
+ $(icon256_DATA) \
+ icons/hicolor/gnome-music.svg
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook: update-icon-cache
+uninstall-hook: update-icon-cache
+update-icon-cache:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating Gtk icon cache."; \
+ $(gtk_update_icon_cache); \
+ else \
+ echo "*** Icon cache not updated. After (un)install, run this:"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ fi
+
+
@INTLTOOL_DESKTOP_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
+ $(icon_files) \
+ $(resource_files) \
CREDITS \
gnome-music.desktop.in \
gnome-music.gresource.xml \
- $(resource_files) \
$(NULL)
CLEANFILES = \
diff --git a/data/gnome-music.desktop.in b/data/gnome-music.desktop.in
index 3843c39..6693485 100644
--- a/data/gnome-music.desktop.in
+++ b/data/gnome-music.desktop.in
@@ -2,7 +2,7 @@
_Name=Music
_GenericName=Music Player
_Comment=Play and organize your music collection
-Icon=audio-x-generic
+Icon=gnome-music
Exec=gnome-music
Terminal=false
Type=Application
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]