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