aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey>2010-06-18 22:48:39 -0400
committerCalvin Morrison <mutantturkey>2010-06-18 22:48:39 -0400
commitf92a9dabb2de09e78cb654ddf78127d2baf3e415 (patch)
treeb062c51365fcff0f5e12d62695fce3a016701126
parent9c5ae52f01d2c14877975c4c12725ecbf37f4228 (diff)
removed and redundant if/then statement that essentially evaluated the same thing twice.
-rw-r--r--svte.c11
1 files 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(