From 94f44a5254c0da4ba143a5c3d99349fa54b10a45 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 1 Jan 2011 13:17:54 +0000 Subject: show_inactive_tabs lets the other chose if she wants to display ALL tabs or just those with activity --- src/windows.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index 0f5371b3..f2cec0bd 100644 --- a/src/windows.py +++ b/src/windows.py @@ -167,6 +167,9 @@ class GlobalInfoBar(Win): sorted_tabs = sorted(tabs, key=comp) for tab in sorted_tabs: color = tab.get_color_state() + if config.get('show_inactive_tabs', 'true') == 'false' and\ + color == theme.COLOR_TAB_NORMAL: + continue try: self.addstr("%s" % str(tab.nb), curses.color_pair(color)) self.addstr("|", curses.color_pair(theme.COLOR_INFORMATION_BAR)) -- cgit v1.2.3