diff options
author | mathieui <mathieui@mathieui.net> | 2012-02-14 00:33:29 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-02-14 00:33:29 +0100 |
commit | 560390793d29728ea96e1a547424a28098dcb610 (patch) | |
tree | e73b2d04717f6f2f1efd04b48515a3cedcd17966 /src/windows.py | |
parent | af110581290d28b86f991dc48ced55c085852225 (diff) | |
download | poezio-560390793d29728ea96e1a547424a28098dcb610.tar.gz poezio-560390793d29728ea96e1a547424a28098dcb610.tar.bz2 poezio-560390793d29728ea96e1a547424a28098dcb610.tar.xz poezio-560390793d29728ea96e1a547424a28098dcb610.zip |
Add 'joined' tab state, and rewrite the function handling the priorities
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py index 3a852ebc..91363f26 100644 --- a/src/windows.py +++ b/src/windows.py @@ -310,7 +310,7 @@ class GlobalInfoBar(Win): for tab in sorted_tabs: color = tab.color if config.get('show_inactive_tabs', 'true') == 'false' and\ - color == get_theme().COLOR_TAB_NORMAL: + color is get_theme().COLOR_TAB_NORMAL: continue try: self.addstr("%s" % str(tab.nb), to_curses_attr(color)) @@ -342,7 +342,7 @@ class VerticalGlobalInfoBar(Win): sorted_tabs = sorted(self.core.tabs, key=comp) if config.get('show_inactive_tabs', 'true') == 'false': sorted_tabs = [tab for tab in sorted_tabs if\ - tab.vertical_color != get_theme().COLOR_VERTICAL_TAB_NORMAL] + tab.vertical_color is not get_theme().COLOR_VERTICAL_TAB_NORMAL] nb_tabs = len(sorted_tabs) if nb_tabs >= height: for y, tab in enumerate(sorted_tabs): |