Fixup desktop file and install icons correctly
|
@ -6,6 +6,10 @@ Exec=gitg %U
|
|||
TryExec=gitg
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=gitg48x48.png
|
||||
Icon=gitg
|
||||
Categories=GNOME;GTK;Development;
|
||||
#X-GNOME-DocPath=gitg/gitg.xml
|
||||
X-GNOME-Bugzilla-Bugzilla=GNOME
|
||||
X-GNOME-Bugzilla-Product=gitg
|
||||
X-GNOME-Bugzilla-Component=core
|
||||
X-GNOME-Bugzilla-Version=@VERSION@
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
iconsdir = $(datadir)/gitg/icons
|
||||
icons_DATA = \
|
||||
public_icons_themes = \
|
||||
hicolor \
|
||||
HighContrastLargePrint \
|
||||
HighContrastLargePrintInverse \
|
||||
LowContrastLargePrint
|
||||
|
||||
public_icons = \
|
||||
hicolor_apps_16x16_gitg.png \
|
||||
hicolor_apps_22x22_gitg.png \
|
||||
hicolor_apps_24x24_gitg.png \
|
||||
hicolor_apps_32x32_gitg.png \
|
||||
hicolor_apps_48x48_gitg.png \
|
||||
hicolor_apps_scalable_gitg.svg
|
||||
|
||||
private_icons = \
|
||||
gitg16x16.png \
|
||||
gitg22x22.png \
|
||||
gitg24x24.png \
|
||||
gitg32x32.png \
|
||||
gitg48x48.png \
|
||||
|
@ -8,17 +22,49 @@ icons_DATA = \
|
|||
gitg128x128.png \
|
||||
gitg.svg
|
||||
|
||||
pixmapsdir = $(datadir)/pixmaps
|
||||
pixmaps_DATA = \
|
||||
gitg48x48.png
|
||||
gtk_update_icon_cache = gtk-update-icon-cache -f -t
|
||||
|
||||
bundle: $(icons_DATA)
|
||||
for i in $(SUBDIRS); do (cd $$i && $(MAKE) top_bundledir="$(top_bundledir)" $(AM_MAKEFLAGS) bundle); done; \
|
||||
for i in $(icons_DATA); do $(INSTALL) -D $$i $(top_bundledir)/resources/icons/$$i; done;
|
||||
iconsdir = $(datadir)/gitg/icons
|
||||
icons_DATA = $(private_icons)
|
||||
|
||||
.PHONY: bundle
|
||||
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
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(icons_DATA)
|
||||
$(public_icons) \
|
||||
$(private_icons)
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
|
BIN
data/icons/gitg22x22.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
data/icons/hicolor_apps_16x16_gitg.png
Normal file
After Width: | Height: | Size: 754 B |
BIN
data/icons/hicolor_apps_22x22_gitg.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
data/icons/hicolor_apps_24x24_gitg.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/icons/hicolor_apps_32x32_gitg.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/icons/hicolor_apps_48x48_gitg.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
1196
data/icons/hicolor_apps_scalable_gitg.svg
Normal file
After Width: | Height: | Size: 44 KiB |
|
@ -137,6 +137,7 @@ set_icons()
|
|||
{
|
||||
static gchar const *icon_infos[] = {
|
||||
"gitg16x16.png",
|
||||
"gitg22x22.png",
|
||||
"gitg24x24.png",
|
||||
"gitg32x32.png",
|
||||
"gitg48x48.png",
|
||||
|
|