include app icon

https://bugzilla.gnome.org/show_bug.cgi?id=741032
This commit is contained in:
Jakub Steiner
2014-12-05 16:10:13 -05:00
committed by Erick Pérez Castellanos
parent 20575b928f
commit 26f85f9f8f
12 changed files with 1335 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ AC_CONFIG_FILES([
src/Makefile
data/Makefile
data/gnome-calendar.desktop.in
data/icons/Makefile
po/Makefile.in
])
+2
View File
@@ -1,3 +1,5 @@
SUBDIRS = icons
desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktop_in_files = gnome-calendar.desktop.in
+67
View File
@@ -0,0 +1,67 @@
NULL =
public_icons_themes = \
hicolor \
$(NULL)
public_icons = \
hicolor_apps_16x16_gnome-calendar.png \
hicolor_apps_22x22_gnome-calendar.png \
hicolor_apps_24x24_gnome-calendar.png \
hicolor_apps_32x32_gnome-calendar.png \
hicolor_apps_48x48_gnome-calendar.png \
hicolor_apps_256x256_gnome-calendar.png \
hicolor_apps_512x512_gnome-calendar.png \
$(NULL)
noinst_DATA = \
gnome-calendar.svg \
gnome-calendar.blend \
$(NULL)
EXTRA_DIST = \
$(public_icons) \
$(noinst_DATA) \
$(NULL)
###############################################################################
gtk_update_icon_cache = gtk-update-icon-cache -f -t
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
for theme in $(public_icons_themes); do \
$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
done; \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
for theme in $(public_icons_themes); do \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
done; \
fi
install-icons:
for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
uninstall-icons:
-for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
install-data-local: install-icons update-icon-cache
uninstall-local: uninstall-icons update-icon-cache
-include $(top_srcdir)/git.mk
Binary file not shown.
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB