diff options
author | Logan Rathbone <poprocks@gmail.com> | 2022-04-16 12:56:29 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:19 +0700 |
commit | 649f1f03748914fd7553f3292863c9652807a3bf (patch) | |
tree | e7d19a24e8ccfab871e5a4f43fdf9a8897162029 /development/ghex | |
parent | d7c8442d96ea963d7419e0c7446350716a8eb5d6 (diff) |
development/ghex: Update for 42.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ghex')
-rw-r--r-- | development/ghex/ghex-42.1-fix-redraw.patch | 22 | ||||
-rw-r--r-- | development/ghex/ghex.SlackBuild | 6 | ||||
-rw-r--r-- | development/ghex/ghex.info | 6 |
3 files changed, 30 insertions, 4 deletions
diff --git a/development/ghex/ghex-42.1-fix-redraw.patch b/development/ghex/ghex-42.1-fix-redraw.patch new file mode 100644 index 0000000000000..7bdbf8c890208 --- /dev/null +++ b/development/ghex/ghex-42.1-fix-redraw.patch @@ -0,0 +1,22 @@ +diff --git a/src/gtkhex.c b/src/gtkhex.c +index c34b57f..b155838 100644 +--- a/src/gtkhex.c ++++ b/src/gtkhex.c +@@ -2951,6 +2951,17 @@ hex_widget_init (HexWidget *self) + gtk_widget_add_controller (widget, + GTK_EVENT_CONTROLLER(controller)); + ++ /* Event controller - focus */ ++ ++ controller = gtk_event_controller_focus_new (); ++ ++ g_signal_connect_swapped (controller, "enter", ++ G_CALLBACK(gtk_widget_queue_draw), widget); ++ g_signal_connect_swapped (controller, "leave", ++ G_CALLBACK(gtk_widget_queue_draw), widget); ++ ++ gtk_widget_add_controller (widget, GTK_EVENT_CONTROLLER(controller)); ++ + /* Connect signal for adjustment */ + + g_signal_connect (self->adj, "value-changed", diff --git a/development/ghex/ghex.SlackBuild b/development/ghex/ghex.SlackBuild index cbeb4c69f65f2..b574ac2c9c086 100644 --- a/development/ghex/ghex.SlackBuild +++ b/development/ghex/ghex.SlackBuild @@ -12,7 +12,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ghex -VERSION=${VERSION:-42.0} +VERSION=${VERSION:-42.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -56,6 +56,10 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION + +# Upstream patch; can remove when 42.2 is released. +patch -p1 < $CWD/ghex-42.1-fix-redraw.patch + chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ diff --git a/development/ghex/ghex.info b/development/ghex/ghex.info index 701ceb21c7b63..c1b24adeee9f0 100644 --- a/development/ghex/ghex.info +++ b/development/ghex/ghex.info @@ -1,8 +1,8 @@ PRGNAM="ghex" -VERSION="42.0" +VERSION="42.1" HOMEPAGE="https://gitlab.gnome.org/GNOME/ghex" -DOWNLOAD="https://download.gnome.org/sources/ghex/42/ghex-42.0.tar.xz" -MD5SUM="0f4b4b7bb38e18adb51f54fbf2c98367" +DOWNLOAD="https://download.gnome.org/sources/ghex/42/ghex-42.1.tar.xz" +MD5SUM="6d5b4d83e4f00427f27efcfe92e05790" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |