[gnome-terminal] Print "Close this window?" only if more than one tab would be closed



commit b2e23982b2a8a12a49f5f0617f4ade77201be74d
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Jun 24 16:45:22 2009 +0200

    Print "Close this window?" only if more than one tab would be closed
    
    http://bugzilla.gnome.org/show_bug.cgi?id=575295

 src/terminal-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index f51b018..e135ab2 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3030,7 +3030,7 @@ confirm_close_window_or_tab (TerminalWindow *window,
                             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                             GTK_MESSAGE_WARNING,
                             GTK_BUTTONS_CANCEL,
-                            "%s", screen ? _("Close this terminal?") : _("Close this window?"));
+                            "%s", n_tabs > 1 ? _("Close this window?") : _("Close this terminal?"));
 
   if (n_tabs > 1)
     gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]