summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/default_config.cfg4
-rw-r--r--doc/en/configure.txt9
-rw-r--r--src/core.py4
3 files changed, 15 insertions, 2 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg
index 0ad9e328..dcc12cb7 100644
--- a/data/default_config.cfg
+++ b/data/default_config.cfg
@@ -177,6 +177,10 @@ themes_dir =
# theme will be used instead
theme =
+enable_vertical_tab_list = false
+
+vertical_tab_list_size = 20
+
# The nick of people who join, part, change their status, etc. in a MUC will
# be displayed using their nick color if true.
display_user_color_in_join_part = false
diff --git a/doc/en/configure.txt b/doc/en/configure.txt
index 5928ef3e..3c03b23d 100644
--- a/doc/en/configure.txt
+++ b/doc/en/configure.txt
@@ -216,6 +216,15 @@ Configuration options
If the file is not found (or no filename is specified) the default
theme will be used instead
+*enable_vertical_tab_list*:: false
+
+ If true, a vertical list of tabs, with their name, is displayed on the left of
+ the screen.
+
+*vertical_tab_list_size*:: 20
+
+ Define the width of the vertical tabs. Does nothing if it is not enabled.
+
*send_chat_states*:: true
if true, chat states will be sent to the people you are talking to.
diff --git a/src/core.py b/src/core.py
index 120438ed..8e2cccea 100644
--- a/src/core.py
+++ b/src/core.py
@@ -221,7 +221,7 @@ class Core(object):
"""
with g_lock:
self.tab_win.resize(1, tabs.Tab.width, tabs.Tab.height - 2, 0)
- if config.get('enable_left_tab_list', 'false') == 'true':
+ if config.get('enable_vertical_tab_list', 'false') == 'true':
height, width = self.stdscr.getmaxyx()
truncated_win = self.stdscr.subwin(height, config.get('vertical_tab_list_size', 20), 0, 0)
self.left_tab_win = windows.VerticalGlobalInfoBar(truncated_win)
@@ -754,7 +754,7 @@ class Core(object):
# window to each Tab class, so the draw themself in the portion
# of the screen that the can occupy, and we draw the tab list
# on the left remaining space
- if config.get('enable_left_tab_list', 'false') == 'true':
+ if config.get('enable_vertical_tab_list', 'false') == 'true':
scr = self.stdscr.subwin(0, config.get('vertical_tab_list_size', 20))
else:
scr = self.stdscr