void-packages/srcpkgs/gimp/patches/d7228727d7a4b11909001cf8fd8...

29 lines
1.0 KiB
Diff

From d7228727d7a4b11909001cf8fd8977d68bd29720 Mon Sep 17 00:00:00 2001
From: Luca Bacci <luca.bacci982@gmail.com>
Date: Tue, 2 Apr 2024 11:31:08 +0200
Subject: [PATCH] QuitDialog: disconnect signal handler on dialog destroy
...rather than finalize.
Fixes #10785
---
app/dialogs/quit-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
index ad9a4495f9c..3c18a09260a 100644
--- a/app/dialogs/quit-dialog.c
+++ b/app/dialogs/quit-dialog.c
@@ -300,7 +300,7 @@ quit_close_all_dialog_new (Gimp *gimp,
closure = g_cclosure_new (G_CALLBACK (quit_close_all_dialog_container_changed),
private, NULL);
- g_object_watch_closure (G_OBJECT (private->dialog), closure);
+ g_signal_connect_swapped (private->dialog, "destroy", G_CALLBACK (g_closure_invalidate), closure);
g_signal_connect_closure (private->images, "add", closure, FALSE);
g_signal_connect_closure (private->images, "remove", closure, FALSE);
--
GitLab