[gnome-terminal] Don't set show-border on the notebook



commit a55d4ce2acb79d63501c93841b7844e498d1bc47
Author: Christian Persch <chpe gnome org>
Date:   Wed Aug 26 22:57:36 2009 +0200

    Don't set show-border on the notebook
    
    We never want to show the border around the notebook.
    The current code that set it to TRUE iff the window has more than one
    tab is a no-op anyway since GtkNotebook always shows the border in this
    case (see gtk bug #123408).

 src/terminal-window.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 5ea2776..1ffdd78 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2217,17 +2217,6 @@ terminal_window_set_is_restored (TerminalWindow *window)
 }
 
 static void
-update_notebook (TerminalWindow *window)
-{
-  TerminalWindowPrivate *priv = window->priv;
-  gboolean single;
-
-  single = priv->terms == 1;
-    
-  gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), !single);
-}
-
-static void
 profile_set_callback (TerminalScreen *screen,
                       TerminalProfile *old_profile,
                       TerminalWindow *window)
@@ -2767,8 +2756,6 @@ notebook_page_added_callback (GtkWidget       *notebook,
   g_signal_connect (screen, "close-screen",
                     G_CALLBACK (screen_close_cb), window);
 
-  update_notebook (window);
-
   update_tab_visibility (window, 0);
 
   /* ZvtTerm is a broken POS and requires this realize to get
@@ -2858,8 +2845,6 @@ notebook_page_removed_callback (GtkWidget       *notebook,
 
   priv->terms--;
 
-  update_notebook (window);
-
   terminal_window_update_tabs_menu_sensitivity (window);
   update_tab_visibility (window, 0);
 



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