[Xfce4-commits] [xfce/thunar] 01/01: Unregister handler when Rename dialog is closed manually (followup of Bug #10805)
noreply at xfce.org
noreply at xfce.org
Mon Mar 23 10:39:49 CET 2020
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 50501bf48730d140b697efd96bdc6ab64a9984f2
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date: Sun Mar 22 18:24:02 2020 +0100
Unregister handler when Rename dialog is closed manually (followup of
Bug #10805)
---
thunar/thunar-dialogs.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-dialogs.c b/thunar/thunar-dialogs.c
index 94eb281..78850ed 100644
--- a/thunar/thunar-dialogs.c
+++ b/thunar/thunar-dialogs.c
@@ -197,7 +197,12 @@ thunar_dialogs_show_rename_file (gpointer parent,
/* cleanup */
if (G_LIKELY (response != GTK_RESPONSE_NONE))
- gtk_widget_destroy (dialog);
+ {
+ /* unregister handler */
+ g_signal_handlers_disconnect_by_func (G_OBJECT (file), gtk_widget_destroy, dialog);
+
+ gtk_widget_destroy (dialog);
+ }
return job;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list