summaryrefslogtreecommitdiff
path: root/desktop/wmcliphist/wmcliphist.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmcliphist/wmcliphist.SlackBuild')
-rw-r--r--desktop/wmcliphist/wmcliphist.SlackBuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/desktop/wmcliphist/wmcliphist.SlackBuild b/desktop/wmcliphist/wmcliphist.SlackBuild
index 81b275cbbc..c146b5861d 100644
--- a/desktop/wmcliphist/wmcliphist.SlackBuild
+++ b/desktop/wmcliphist/wmcliphist.SlackBuild
@@ -17,9 +17,14 @@
# - Install sample config file in doc dir (as per the man page).
# - Fix path to docdir in man page.
+# 20170225 bkw:
+# - BUILD=2
+# - Get rid of annoying assertion "'GTK_IS_WIDGET (widget)' failed" warnings
+# - Document annoying bug I don't know how to fix, in BUG.txt
+
PRGNAM=wmcliphist
VERSION=${VERSION:-2.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -73,6 +78,15 @@ for i in $CWD/*.patch; do
patch -p1 < $i
done
+# This patch is my own. It removes these annoying warnings:
+# gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
+# Reason for the warnings: gtk_container_remove() already destroys
+# a widget, if there's no other reference to it. So we don't need
+# to then call gtk_widget_destroy() on the same widget. See
+# https://developer.gnome.org/gtk3/unstable/GtkContainer.html#gtk-container-remove
+# This explanation is longer than the patch, sorry about that.
+patch -p1 < $CWD/gtk_assert.diff
+
sed -i "/^CFLAGS/s,-pedantic,$SLKCFLAGS," Makefile
sed -i "s,/usr/share/doc/$PRGNAM,/usr/doc/$PRGNAM-$VERSION," $PRGNAM.1