From f92a9dabb2de09e78cb654ddf78127d2baf3e415 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 18 Jun 2010 22:48:39 -0400 Subject: removed and redundant if/then statement that essentially evaluated the same thing twice. --- svte.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/svte.c b/svte.c index 0e6a826..b8558a7 100644 --- a/svte.c +++ b/svte.c @@ -246,19 +246,22 @@ static void tab_new() { t->label); gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(svte.notebook), t->vte, TRUE); - if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(svte.notebook)) == 1) { + if (index == 0) { + gtk_notebook_set_show_tabs(GTK_NOTEBOOK(svte.notebook), FALSE); t->pid = vte_terminal_fork_command(VTE_TERMINAL(t->vte), NULL, NULL, NULL, NULL, - FALSE, FALSE, FALSE); + FALSE, FALSE, FALSE); tab_geometry_hints(t); + } else { t->pid = vte_terminal_fork_command(VTE_TERMINAL(t->vte), NULL, NULL, NULL, tab_get_cwd(previous), FALSE, FALSE, FALSE); + gtk_notebook_set_show_tabs(GTK_NOTEBOOK(svte.notebook), TRUE); } - if (index == 0) { + /* if (index == 0) { gtk_notebook_set_show_tabs(GTK_NOTEBOOK(svte.notebook), FALSE); } else { gtk_notebook_set_show_tabs(GTK_NOTEBOOK(svte.notebook), TRUE); - } + }*/ g_object_set_qdata_full(G_OBJECT(gtk_notebook_get_nth_page( -- cgit v1.2.3