summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-24 21:39:49 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-24 21:39:49 +0100
commitcccbad13d5dc0515c52131f657e48640aaa7d8af (patch)
treea9f3e134313e7954a43391be8c4dac03e438923a /src/windows.py
parente4b96eb752c5e94b9c0a07232fa8738e14d9a06e (diff)
downloadpoezio-cccbad13d5dc0515c52131f657e48640aaa7d8af.tar.gz
poezio-cccbad13d5dc0515c52131f657e48640aaa7d8af.tar.bz2
poezio-cccbad13d5dc0515c52131f657e48640aaa7d8af.tar.xz
poezio-cccbad13d5dc0515c52131f657e48640aaa7d8af.zip
end and handle chatstates in privateconversations
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index dc30d541..a18785ad 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -245,12 +245,13 @@ class PrivateInfoWin(InfoWin):
def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr)
- def refresh(self, room, window):
+ def refresh(self, room, window, chatstate):
with g_lock:
self._win.erase()
self.write_room_name(room)
self.print_scroll_position(window)
+ self.write_chatstate(chatstate)
self.finish_line(theme.COLOR_INFORMATION_BAR)
self._refresh()
@@ -261,6 +262,10 @@ class PrivateInfoWin(InfoWin):
txt = ' from room %s' % room_name
self.addstr(txt, common.curses_color_pair(theme.COLOR_INFORMATION_BAR))
+ def write_chatstate(self, state):
+ if state:
+ self.addstr(' %s' % (state,), common.curses_color_pair(theme.COLOR_INFORMATION_BAR))
+
class ConversationInfoWin(InfoWin):
"""
The line above the information window, displaying informations