diff options
author | Calvin Morrison <mutantturkey> | 2010-06-18 22:48:39 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey> | 2010-06-18 22:48:39 -0400 |
commit | f92a9dabb2de09e78cb654ddf78127d2baf3e415 (patch) | |
tree | b062c51365fcff0f5e12d62695fce3a016701126 /svte.c | |
parent | 9c5ae52f01d2c14877975c4c12725ecbf37f4228 (diff) |
removed and redundant if/then statement that essentially evaluated the same thing twice.
Diffstat (limited to 'svte.c')
-rw-r--r-- | svte.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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( |