summarylogtreecommitdiffstats
path: root/gtk3.install
diff options
context:
space:
mode:
authorhorsemanoffaith2015-12-31 14:13:46 -0800
committerhorsemanoffaith2015-12-31 14:13:46 -0800
commit997f7df4823dd563b0aaec996215d1c5356d9c03 (patch)
treeae4f405f7e50d3a7e8a3e1f633f4aaa8e0576b8b /gtk3.install
downloadaur-997f7df4823dd563b0aaec996215d1c5356d9c03.tar.gz
Initial import
Diffstat (limited to 'gtk3.install')
-rw-r--r--gtk3.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk3.install b/gtk3.install
new file mode 100644
index 000000000000..92341331ab9d
--- /dev/null
+++ b/gtk3.install
@@ -0,0 +1,25 @@
+post_install() {
+ /usr/bin/gtk-query-immodules-3.0 --update-cache
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
+ /usr/bin/gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ echo "If you want to use the global menus and you are not using Unity, you will need"
+ echo "to add the following to ~/.config/gtk-3.0/settings.ini"
+ echo
+ echo "********************************"
+ echo "[Settings]"
+ echo "gtk-shell-shows-menubar = 1"
+ echo "********************************"
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -f /usr/lib/gtk-3.0/3.0.0/immodules.cache
+}
+
+post_remove() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
+ /usr/bin/gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}