[arch-commits] Commit in thunar/trunk (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Fri Sep 17 18:46:49 UTC 2021
Date: Friday, September 17, 2021 @ 18:46:49
Author: foutrelis
Revision: 424299
upgpkg: thunar 4.16.9-2: fix signal disconnect (FS#72153)
Added:
thunar/trunk/fix-signal-disconnect-in-thunar_window_unrealize.patch
Modified:
thunar/trunk/PKGBUILD
--------------------------------------------------------+
PKGBUILD | 11 ++++-
fix-signal-disconnect-in-thunar_window_unrealize.patch | 29 +++++++++++++++
2 files changed, 37 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-09-17 18:00:31 UTC (rev 424298)
+++ PKGBUILD 2021-09-17 18:46:49 UTC (rev 424299)
@@ -3,7 +3,7 @@
pkgname=thunar
pkgver=4.16.9
-pkgrel=1
+pkgrel=2
pkgdesc="Modern file manager for Xfce"
arch=('x86_64')
url="https://docs.xfce.org/xfce/thunar/start"
@@ -17,11 +17,16 @@
'thunar-volman: removable device management'
'thunar-archive-plugin: archive creation and extraction'
'thunar-media-tags-plugin: view/edit ID3/OGG tags')
-source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('520bf318eef8bc792db38ae4af343b648f87d4b8d66f5b5d6f092e15264ee5af')
+source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ fix-signal-disconnect-in-thunar_window_unrealize.patch)
+sha256sums=('520bf318eef8bc792db38ae4af343b648f87d4b8d66f5b5d6f092e15264ee5af'
+ '6392c86bed2f5912d4f1665704d9856797a0fb97efe251ace770952abb91122a')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
+
+ # https://gitlab.xfce.org/xfce/thunar/-/issues/653
+ patch -Np1 -i ../fix-signal-disconnect-in-thunar_window_unrealize.patch
}
build() {
Added: fix-signal-disconnect-in-thunar_window_unrealize.patch
===================================================================
--- fix-signal-disconnect-in-thunar_window_unrealize.patch (rev 0)
+++ fix-signal-disconnect-in-thunar_window_unrealize.patch 2021-09-17 18:46:49 UTC (rev 424299)
@@ -0,0 +1,29 @@
+From cfc47d65674e4341912e8a0a6fc0072cd2e8e595 Mon Sep 17 00:00:00 2001
+From: Evangelos Foutras <evangelos at foutrelis.com>
+Date: Fri, 17 Sep 2021 20:49:24 +0300
+Subject: [PATCH] Fix signal disconnect in thunar_window_unrealize
+
+Commit c2a97b896f04 replaced the gtk_widget_queue_draw callback with
+thunar_window_clipboard_manager_changed. The same change needs to be
+made in thunar_window_unrealize, which was still referencing the old
+function (gtk_widget_queue_draw).
+
+Fixes: c2a97b896f04 ("Fix file-icon update when file is cut (Issue #588)")
+Closes: https://gitlab.xfce.org/xfce/thunar/-/issues/653
+---
+ thunar/thunar-window.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
+index d464e338..27cd22f7 100644
+--- a/thunar/thunar-window.c
++++ b/thunar/thunar-window.c
+@@ -1820,7 +1820,7 @@ thunar_window_unrealize (GtkWidget *widget)
+ ThunarWindow *window = THUNAR_WINDOW (widget);
+
+ /* disconnect from the clipboard manager */
+- g_signal_handlers_disconnect_by_func (G_OBJECT (window->clipboard), gtk_widget_queue_draw, widget);
++ g_signal_handlers_disconnect_by_func (G_OBJECT (window->clipboard), thunar_window_clipboard_manager_changed, widget);
+
+ /* let the GtkWidget class unrealize the window */
+ (*GTK_WIDGET_CLASS (thunar_window_parent_class)->unrealize) (widget);
More information about the arch-commits
mailing list