summarylogtreecommitdiffstats
path: root/gtk2.install
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2.install')
-rw-r--r--gtk2.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2.install b/gtk2.install
new file mode 100644
index 000000000000..f14e648d38bb
--- /dev/null
+++ b/gtk2.install
@@ -0,0 +1,17 @@
+post_install() {
+ /usr/bin/gtk-query-immodules-2.0 --update-cache
+}
+
+pre_upgrade() {
+ if (( $(vercmp $2 2.24.20) < 0 )); then
+ rm -f /etc/gtk-2.0/gtk.immodules
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -f /usr/lib/gtk-2.0/2.10.0/immodules.cache
+}