From 46f17589dadb24dda11806f67da3d72a410f55c4 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 2 Feb 2009 23:01:00 +0000 Subject: [PATCH] quite why people want this, I don't know, but they do. see LP question 59635 --- doc/terminator_config.5 | 8 ++++++-- terminatorlib/config.py | 1 + terminatorlib/terminator.py | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index 32370c42..95f756aa 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -193,15 +193,19 @@ Default value: \fBTrue\fR Defines where tabs are placed. Can be any of: top, left, right, bottom. Default value: \fBtop\fR .TP -.B extreme_tabs \fB(boolean)\fR +.B extreme_tabs \fR(boolean) If set to True, tabs can be created within other tabs. Be warned that this can be very confusing and hard to use. Default value: \fBFalse\fR .TP +.B hide_tabbar \fR(boolean) +If set to True, the tab bar will be hidden. This means there will be no visual indication of either how many tabs there are, or which one you are on. Be warned that this can be very confusing and hard to use. +Default value: \fBFalse\fR +.TP .B copy_on_selection \fR(boolean) If set to True, text selections will be automatically copied to the clipboard, in addition to being made the Primary selection. Default value: \fBFalse\fR .TP -.B try_posix_regexp \fB(boolean)\fR +.B try_posix_regexp \fR(boolean) If set to True, URL matching regexps will try to use POSIX style first, and fall back on GNU style on failure. If you are on Linux but URL matches don't work, try setting this to True. If you are not on Linux, but you get VTE warnings on startup saying "Error compiling regular expression", set this to False to silence them (they are otherwise harmless). Default value: \fBFalse\fR on Linux, \fBTrue\fR otherwise. .SH "KEYBINDINGS" diff --git a/terminatorlib/config.py b/terminatorlib/config.py index ea9d1124..3a090c4c 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -107,6 +107,7 @@ Defaults = { 'tab_position' : 'top', 'enable_real_transparency' : False, 'try_posix_regexp' : platform.system() != 'Linux', + 'hide_tabbar' : False, 'keybindings' : { 'zoom_in' : 'plus', 'zoom_out' : 'minus', diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 077604f0..feaef0fe 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -683,6 +683,7 @@ class Terminator: # Config validates this. pos = getattr(gtk, "POS_%s" % self.conf.tab_position.upper()) notebook.set_tab_pos(pos) + notebook.set_show_tabs (not self.conf.hide_tabbar) if isinstance(parent, gtk.Paned): if parent.get_child1() == child: