aboutsummaryrefslogtreecommitdiff
path: root/svte.c
diff options
context:
space:
mode:
Diffstat (limited to 'svte.c')
-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(