[Pkg-privacy-commits] [nautilus-wipe] 49/224: Don't destroy widget if already destroyed

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository nautilus-wipe.

commit 8782a82e2ff1f40745326ac4dd5408eae7e47225
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Tue Feb 23 22:16:12 2010 +0100

    Don't destroy widget if already destroyed
    
    Dialog was destroyed twice if destroyed together with its parent (in
    response of GTK_DIALOG_DESTROY_WITH_PARENT).
---
 nautilus-srm/operation-manager.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nautilus-srm/operation-manager.c b/nautilus-srm/operation-manager.c
index 5e944de..a91ebd5 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -91,7 +91,10 @@ display_dialog (GtkWindow       *parent,
   /* show the dialog */
   if (wait_for_response) {
     response = gtk_dialog_run (GTK_DIALOG (dialog));
-    gtk_widget_destroy (dialog);
+    /* if not already destroyed by the parent */
+    if (GTK_IS_WIDGET (dialog)) {
+      gtk_widget_destroy (dialog);
+    }
   } else {
     g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
     gtk_widget_show (dialog);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git



More information about the Pkg-privacy-commits mailing list