[Pkg-privacy-commits] [nautilus-wipe] 38/224: Use non-modal dialogs when we don't expect a response from the user

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:32 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 99eac4a4c7282dbad409d1521dad272bdcd9e30d
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Sun Feb 21 02:41:46 2010 +0100

    Use non-modal dialogs when we don't expect a response from the user
    
    This avoid "freezing" Nautilus when it is not needed at all.
---
 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 25acc4b..1453c93 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -47,6 +47,7 @@ static GtkResponseType  display_dialog     (GtkWindow       *parent,
  *                     gtk_dialog_run()), but allow to get the dialog's
  *                     response. If this options is %TRUE, this function will
  *                     always return %GTK_RESPONSE_NONE.
+ *                     Use this if you want a modal dialog.
  * @primary_text: GtkMessageDialog's primary text
  * @secondary_text: GtkMessageDialog's secondary text, or %NULL
  * @first_button_text: Text of the first button, or %NULL
@@ -70,7 +71,7 @@ display_dialog (GtkWindow       *parent,
   va_list         ap;
   
   dialog = gtk_message_dialog_new (parent,
-                                   GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+                                   GTK_DIALOG_DESTROY_WITH_PARENT,
                                    type, GTK_BUTTONS_NONE,
                                    "%s", primary_text);
   if (secondary_text) {

-- 
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