summarylogtreecommitdiffstats
path: root/gtk3.install
diff options
context:
space:
mode:
authorEarnestly2015-08-16 12:42:18 +0100
committerEarnestly2015-08-16 12:42:18 +0100
commit8c99e473f4705ca1df3416f0b0b612e56e0e90af (patch)
treec31db63f7cc60213e2412b7a195dcb82230dfa98 /gtk3.install
downloadaur-8c99e473f4705ca1df3416f0b0b612e56e0e90af.tar.gz
Add gtk3-optional-csd.
Diffstat (limited to 'gtk3.install')
-rw-r--r--gtk3.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk3.install b/gtk3.install
new file mode 100644
index 000000000000..d2e16cb8814e
--- /dev/null
+++ b/gtk3.install
@@ -0,0 +1,19 @@
+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
+ printf 'Use GTK_CSD=1 to enable the CSD where the CSD can be used.\n'
+}
+
+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
+}