diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-16 02:05:37 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-16 02:09:30 +0100 |
commit | 1777d7414d4db60beb209c33d678b25a47ba73c0 (patch) | |
tree | 428fa64e0ba949b8ed6b975e6c66886db256e6f2 | |
parent | d67ec3278ae5a56373597c6f2a259d9dba9cc809 (diff) | |
download | poezio-1777d7414d4db60beb209c33d678b25a47ba73c0.tar.gz poezio-1777d7414d4db60beb209c33d678b25a47ba73c0.tar.bz2 poezio-1777d7414d4db60beb209c33d678b25a47ba73c0.tar.xz poezio-1777d7414d4db60beb209c33d678b25a47ba73c0.zip |
Document the two new options.
-rw-r--r-- | data/default_config.cfg | 4 | ||||
-rw-r--r-- | doc/en/configure.txt | 9 | ||||
-rw-r--r-- | src/core.py | 4 |
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 |