[gnome-terminal] Comment out foreground process detection



commit 5b34cfbe5d447b7a011a0092b90568c3c21df1c9
Author: Christian Persch <chpe gnome org>
Date:   Wed Jul 22 18:20:02 2009 +0200

    Comment out foreground process detection
    
    Go back to basing the decision whether to show the confirm-close dialogue
    on the number of tabs only, as before.

 src/terminal-screen.c |    4 ++++
 src/terminal-window.c |   12 +++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index f62ddd2..472dfbc 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -2313,6 +2313,9 @@ terminal_screen_save_config (TerminalScreen *screen,
 gboolean
 terminal_screen_has_foreground_process (TerminalScreen *screen)
 {
+  return FALSE;
+
+#if 0
   TerminalScreenPrivate *priv = screen->priv;
   int fgpid;
 
@@ -2324,6 +2327,7 @@ terminal_screen_has_foreground_process (TerminalScreen *screen)
     return FALSE;
 
   return TRUE;
+#endif
 
 #if 0
   char *cmdline, *basename, *name;
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 3098d14..691530d 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3000,17 +3000,22 @@ confirm_close_window_or_tab (TerminalWindow *window,
 
   if (screen)
     {
+#if 0
       do_confirm = terminal_screen_has_foreground_process (screen);
+#endif
+      do_confirm = FALSE;
       n_tabs = 1;
     }
   else
     {
-      GList *tabs, *t;
-
-      do_confirm = FALSE;
+      GList *tabs;
+      GList *t;
 
       tabs = terminal_window_list_screen_containers (window);
       n_tabs = g_list_length (tabs);
+      do_confirm = n_tabs > 1;
+#if 0
+      do_confirm = FALSE;
 
       for (t = tabs; t != NULL; t = t->next)
         {
@@ -3023,6 +3028,7 @@ confirm_close_window_or_tab (TerminalWindow *window,
               break;
             }
         }
+#endif
       g_list_free (tabs);
     }
 



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