Magellan Linux

Annotation of /trunk/include/gtk2.minc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 76 - (hide annotations) (download)
Tue Sep 2 12:10:01 2014 UTC (9 years, 8 months ago) by niro
File size: 686 byte(s)
-split glib2 fdo-mime and gtk functions from gnome2 and use a minimal postinstall as default for gnome2
1 niro 76 # $Id$
2    
3     gtk2_update_icon_cache()
4     {
5     local icons
6    
7     if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]
8     then
9     if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ]
10     then
11     echo "Searching icon directories ..."
12     pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
13     icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
14     popd &> /dev/null
15     else
16     icons="usr/share/icons/hicolor"
17     fi
18    
19     # abort here, if no icons where found
20     [[ -z ${icons} ]] && return
21    
22     echo "Updating icons cache ..."
23     local i
24     for i in ${icons}
25     do
26     if [[ -f ${MROOT}/${i}/index.theme ]]
27     then
28     ${MROOT}/usr/bin/gtk-update-icon-cache -qf ${MROOT}/${i}
29     fi
30     done
31     fi
32     }