[Pkg-privacy-commits] [nautilus-wipe] 32/224: Fix response in display_dialog().

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:31 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 33b8ebd9b985a2d4bb2c03bfbb308b003006af31
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Sat Feb 20 22:44:28 2010 +0100

    Fix response in display_dialog().
    
    Don't destroy the dialog on the ::response signal if we expect to get
    its response with gtk_dialog_run().
    Fixes non-launching of operations regardless of the actual user response.
---
 nautilus-srm/operation-manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nautilus-srm/operation-manager.c b/nautilus-srm/operation-manager.c
index ee844b9..a981903 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -86,10 +86,11 @@ display_dialog (GtkWindow       *parent,
   }
   va_end (ap);
   /* show the dialog */
-  g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
   if (wait_for_response) {
     response = gtk_dialog_run (GTK_DIALOG (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