e2c46b
# adwaita
e2c46b
if [ $1 -eq 0 ] ; then
e2c46b
    touch --no-create %{gtk3_install_path}/share/icons/Adwaita &>/dev/null
e2c46b
    touch --no-create %{gtk3_install_path}/share/icons/hicolor &>/dev/null
e2c46b
    %{gtk3_install_path}/bin/gtk-update-icon-cache %{gtk3_install_path}/share/icons/Adwaita &>/dev/null || :
e2c46b
    %{gtk3_install_path}/bin/gtk-update-icon-cache %{gtk3_install_path}/share/icons/hicolor &>/dev/null || :
e2c46b
fi
e2c46b
e2c46b
# gdk-pixbuf2
e2c46b
if [ $1 -gt 0 ]; then
e2c46b
  %{gtk3_install_path}/bin/gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
e2c46b
fi
e2c46b
e2c46b
# glib2
e2c46b
[ ! -x %{gtk3_install_path}/bin/gio-querymodules-%{__isa_bits} ] || \
e2c46b
%{gtk3_install_path}/bin/gio-querymodules-%{__isa_bits} %{gtk3_install_path}/%{_lib}/gio/modules
e2c46b
e2c46b
# gtk3
e2c46b
if [ $1 -gt 0 ]; then
e2c46b
  %{gtk3_install_path}/bin/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
e2c46b
fi
e2c46b
e2c46b
if [ $1 -eq 0 ] ; then
e2c46b
    rm -rf %{gtk3_install_path}/var/cache/fontconfig/* &>/dev/null || :
e2c46b
fi
e2c46b
e2c46b
%{gtk3_install_path}/bin/glib-compile-schemas %{gtk3_install_path}/share/glib-2.0/schemas &> /dev/null || :