Commit 0b616641 authored by Jonh Wendell's avatar Jonh Wendell Committed by Jonh Wendell S. Santana
Browse files

Vinagre has its own icon! Thanks to Vinicius Depizzol for the artwork and

2007-11-11  Jonh Wendell <jwendell@gnome.org>

	Vinagre has its own icon!
	Thanks to Vinicius Depizzol for the artwork and Michael Monreal for
	the integration patch. Closes #489145.
	
	* configure.ac,
	* data/Makefile.am: Changed some rules
	* data/icons: THE new directory
	* src/vinagre-commands.c: Put vdepizzol's name under credits

svn path=/trunk/; revision=89
parent b70022db
2007-11-11 Jonh Wendell <jwendell@gnome.org>
Vinagre has its own icon!
Thanks to Vinicius Depizzol for the artwork and Michael Monreal for
the integration patch. Closes #489145.
* configure.ac,
* data/Makefile.am: Changed some rules
* data/icons: THE new directory
* src/vinagre-commands.c: Put vdepizzol's name under credits
2007-11-07 Jonh Wendell <jwendell@gnome.org>
* src/vinagre-utils.[ch],
......
......@@ -82,6 +82,7 @@ Makefile
data/Makefile
data/vinagre.desktop.in
data/vinagre-file.desktop.in
data/icons/Makefile
po/Makefile.in
src/Makefile
])
......
SUBDIRS = icons
gladedir = $(datadir)/vinagre
glade_DATA = vinagre.glade
uidir = $(datadir)/vinagre
ui_DATA = vinagre-ui.xml
iconsdir = $(datadir)/icons/hicolor/scalable/apps
icons_DATA = vinagre.svg
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = vinagre.desktop.in vinagre-file.desktop.in
......@@ -25,8 +24,7 @@ EXTRA_DIST = \
$(glade_DATA) \
$(ui_DATA) \
$(desktop_in_files) \
$(MIMEFILES) \
$(icons_DATA)
$(MIMEFILES)
UPDATE_MIME = \
if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
......@@ -42,23 +40,10 @@ UPDATE_DESKTOP = \
fi \
fi
UPDATE_ICON = gtk-update-icon-cache -f -t $(DESTDIR)$(datadir)/icons/hicolor
CLEAR_SLINK = \
rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/mimetypes/application-x-vnc.svg \
rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/mimetypes/application-x-remote-connection.svg
install-data-hook:
$(UPDATE_MIME)
$(UPDATE_DESKTOP)
$(CLEAR_SLINK)
mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/scalable/mimetypes/
ln -s $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/vinagre.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/mimetypes/application-x-vnc.svg
ln -s $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/vinagre.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/mimetypes/application-x-remote-connection.svg
$(UPDATE_ICON)
uninstall-hook:
$(UPDATE_MIME)
$(UPDATE_DESKTOP)
$(CLEAR_SLINK)
$(UPDATE_ICON)
NULL =
public_icons_themes = \
hicolor \
$(NULL)
public_icons = \
hicolor_apps_16x16_vinagre.png \
hicolor_apps_22x22_vinagre.png \
hicolor_apps_24x24_vinagre.png \
hicolor_apps_32x32_vinagre.png \
hicolor_apps_48x48_vinagre.png \
hicolor_apps_scalable_vinagre.svg \
hicolor_mimetypes_16x16_application-x-remote-connection.png \
hicolor_mimetypes_16x16_application-x-vnc.png \
hicolor_mimetypes_22x22_application-x-remote-connection.png \
hicolor_mimetypes_22x22_application-x-vnc.png \
hicolor_mimetypes_24x24_application-x-remote-connection.png \
hicolor_mimetypes_24x24_application-x-vnc.png \
hicolor_mimetypes_32x32_application-x-remote-connection.png \
hicolor_mimetypes_32x32_application-x-vnc.png \
hicolor_mimetypes_48x48_application-x-remote-connection.png \
hicolor_mimetypes_48x48_application-x-vnc.png \
hicolor_mimetypes_scalable_application-x-remote-connection.svg \
hicolor_mimetypes_scalable_application-x-vnc.svg \
$(NULL)
private_icons = \
$(NULL)
noinst_DATA = \
hicolor_apps_16x16_vinagre.svg \
hicolor_apps_16x16_vinagre.xcf \
hicolor_apps_22x22_vinagre.svg \
hicolor_apps_32x32_vinagre.svg \
$(NULL)
EXTRA_DIST = \
$(public_icons) \
$(private_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; \
for icon in $(private_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)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/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; \
for icon in $(private_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)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
install-data-local: install-icons update-icon-cache
uninstall-local: uninstall-icons update-icon-cache
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment