Only install fallback icon when required (#695279)
Applications are moving away from storing icons in /usr/share/pixmaps, instead preferring /usr/share/icons/hicolor/$SIZE/apps, so only install the fallback icon when GParted requires it. Bug #695279 - GParted doesn't compile on RHEL / CentOS 5.9
This commit is contained in:
parent
b09d6035cd
commit
d6baac2546
|
@ -308,9 +308,12 @@ AC_LINK_IFELSE(
|
||||||
)],
|
)],
|
||||||
[AC_DEFINE([HAVE_SET_DEFAULT_ICON_NAME], 1,
|
[AC_DEFINE([HAVE_SET_DEFAULT_ICON_NAME], 1,
|
||||||
[Define to 1 if gtkmm-2.4 provides Gtk::Window::set_default_icon_name() method.])
|
[Define to 1 if gtkmm-2.4 provides Gtk::Window::set_default_icon_name() method.])
|
||||||
|
AM_CONDITIONAL([INSTALL_PIXMAPS_DIR], false)
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
],
|
],
|
||||||
[AC_MSG_RESULT([no])]
|
[AM_CONDITIONAL([INSTALL_PIXMAPS_DIR], true)
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
]
|
||||||
)
|
)
|
||||||
CXXFLAGS="$CXXFLAGS_save"
|
CXXFLAGS="$CXXFLAGS_save"
|
||||||
AC_LANG_POP([C++])
|
AC_LANG_POP([C++])
|
||||||
|
|
|
@ -36,6 +36,12 @@ EXTRA_DIST = \
|
||||||
$(noinst_DATA) \
|
$(noinst_DATA) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
# Only install fallback icon to /usr/share/pixmaps if required
|
||||||
|
if INSTALL_PIXMAPS_DIR
|
||||||
|
INSTALL_PIXMAP = install-pixmap
|
||||||
|
UNINSTALL_PIXMAP = uninstall-pixmap
|
||||||
|
endif
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
gtk_update_icon_cache = gtk-update-icon-cache -f -t
|
gtk_update_icon_cache = gtk-update-icon-cache -f -t
|
||||||
|
@ -94,6 +100,6 @@ install-pixmap:
|
||||||
uninstall-pixmap:
|
uninstall-pixmap:
|
||||||
rm -f $(DESTDIR)$(datadir)/pixmaps/gparted.png
|
rm -f $(DESTDIR)$(datadir)/pixmaps/gparted.png
|
||||||
|
|
||||||
install-data-local: install-icons install-pixmap update-icon-cache
|
install-data-local: install-icons $(INSTALL_PIXMAP) update-icon-cache
|
||||||
|
|
||||||
uninstall-local: uninstall-icons uninstall-pixmap update-icon-cache
|
uninstall-local: uninstall-icons $(UNINSTALL_PIXMAP) update-icon-cache
|
||||||
|
|
Loading…
Reference in New Issue