[gnome-terminal] Make tab detach work again



commit 446cad01f472e409e1af448d87292a89a79bdc31
Author: Christian Persch <chpe gnome org>
Date:   Tue Sep 1 19:02:46 2009 +0200

    Make tab detach work again
    
    Re-enable present-on-insert.

 src/terminal-window.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 824e3e8..fb473ea 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2656,9 +2656,7 @@ notebook_page_added_callback (GtkWidget       *notebook,
                               guint            page_num,
                               TerminalWindow  *window)
 {
-#if 0
   TerminalWindowPrivate *priv = window->priv;
-#endif
   TerminalScreen *screen;
 
   screen = terminal_screen_container_get_screen (container);
@@ -2693,6 +2691,7 @@ notebook_page_added_callback (GtkWidget       *notebook,
                     G_CALLBACK (screen_close_cb), window);
 
   update_tab_visibility (window, 0);
+  terminal_window_update_tabs_menu_sensitivity (window);
 
 #if 0
   /* FIXMEchpe: wtf is this doing? */
@@ -2711,16 +2710,11 @@ notebook_page_added_callback (GtkWidget       *notebook,
     }
 #endif
 
-  /* FIXMEchpe: do this in a connect-after handler */
-#if 0
   if (priv->present_on_insert)
     {
       gtk_window_present_with_time (GTK_WINDOW (window), gtk_get_current_event_time ());
       priv->present_on_insert = FALSE;
     }
-#endif
-
-  terminal_window_update_tabs_menu_sensitivity (window);
 }
 
 static void



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