diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-11-03 20:03:26 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-11-03 20:03:26 -0500 |
commit | a1b95e3b22020aea94f10328767f0aa73cc198be (patch) | |
tree | 2e501ce98d5c4e496b2104d60979b5059b006b0c /svte.c | |
parent | c97bc755ffbfbc3fe755cf0144c3527abef2322d (diff) |
allow user to manually hide tabbar by default with show_tabbar option
Diffstat (limited to 'svte.c')
-rw-r--r-- | svte.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -51,6 +51,7 @@ typedef struct { gdouble bg_saturation; gchar *bg_image; gchar *url_regex; + gboolean show_tabbar; gboolean visible_bell; gint window_height; gint window_width; @@ -398,7 +399,8 @@ static void tab_new(struct window *w) { vte_terminal_fork_command_full(VTE_TERMINAL(t->vte), VTE_PTY_DEFAULT, tab_get_cwd(previous), args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &t->pid, NULL); - gtk_notebook_set_show_tabs(GTK_NOTEBOOK(w->notebook), TRUE); + if(config->show_tabbar == TRUE) + gtk_notebook_set_show_tabs(GTK_NOTEBOOK(w->notebook), TRUE); } g_object_set_qdata_full(G_OBJECT(gtk_notebook_get_nth_page( @@ -536,6 +538,8 @@ static void parse_config_file(gchar *config_file) { keyfile, "ui", "bg_saturation", NULL); config->url_regex = g_key_file_get_string( keyfile, "ui", "url_regex", NULL); + config->show_tabbar = g_key_file_get_boolean( + keyfile, "ui", "show_tabbar", NULL); config->visible_bell = g_key_file_get_boolean( keyfile, "ui", "visible_bell", NULL); config->window_height = g_key_file_get_integer( |