summaryrefslogtreecommitdiff
path: root/src/tab.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-14 22:59:40 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-14 22:59:40 +0000
commitcdcfddcb2e7d4f215ce9940f25a8c57f2c58a919 (patch)
treeccc1ea62555f1460691b13ba28ca95e21462890f /src/tab.py
parent534b39ae8d9023045e7f3c0bb616add17dbe6791 (diff)
downloadpoezio-cdcfddcb2e7d4f215ce9940f25a8c57f2c58a919.tar.gz
poezio-cdcfddcb2e7d4f215ce9940f25a8c57f2c58a919.tar.bz2
poezio-cdcfddcb2e7d4f215ce9940f25a8c57f2c58a919.tar.xz
poezio-cdcfddcb2e7d4f215ce9940f25a8c57f2c58a919.zip
avoid some crashes. Also fixes the line separator on new messages
Diffstat (limited to 'src/tab.py')
-rw-r--r--src/tab.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tab.py b/src/tab.py
index 6dc60bb2..76115a13 100644
--- a/src/tab.py
+++ b/src/tab.py
@@ -271,9 +271,9 @@ class MucTab(Tab):
def on_lose_focus(self):
self._room.set_color_state(theme.COLOR_TAB_NORMAL)
self._room.remove_line_separator()
+ self._room.add_line_separator()
def on_gain_focus(self):
- self._room.add_line_separator()
self._room.set_color_state(theme.COLOR_TAB_CURRENT)
def on_scroll_up(self):
@@ -336,9 +336,9 @@ class PrivateTab(Tab):
def on_lose_focus(self):
self._room.set_color_state(theme.COLOR_TAB_NORMAL)
self._room.remove_line_separator()
+ self._room.add_line_separator()
def on_gain_focus(self):
- self._room.add_line_separator()
self._room.set_color_state(theme.COLOR_TAB_CURRENT)
def on_scroll_up(self):
@@ -353,9 +353,5 @@ class PrivateTab(Tab):
self.info_header.resize(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible)
self.info_win.resize(self.info_win_size, (self.width//10)*9, self.height-2-self.info_win_size, 0, stdscr, self.visible)
- # self.text_win.resize(self.height-4-self.info_win_size, text_width, 1, 0, stdscr, self.visible)
- # self.info_header.resize(1, (self.width//10)*9, self.height-3-self.info_win_size, 0, stdscr, self.visible)
- # self.info_win.resize(self.info_win_size, (self.width//10)*9, self.height-2-self.info_win_size, 0, stdscr, self.visible)
-
def get_room(self):
return self._room