summaryrefslogtreecommitdiff
path: root/desktop/wmcliphist/wmcliphist.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-02-27 01:37:35 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-04 07:26:33 +0700
commit33b2839bd38e4605be984b7b8def76d107d59cd8 (patch)
treea909b1b1978d21c2d2ff1d00c9ba45589b158543 /desktop/wmcliphist/wmcliphist.SlackBuild
parent620f343cae246dacb52d38f0fe780eaef82e24b0 (diff)
downloadslackbuilds-33b2839bd38e4605be984b7b8def76d107d59cd8.tar.gz
desktop/wmcliphist: Updated for version 2.1.
Signed-off-by: B. Watson <yalhcru@gmail.com>
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