summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 00:09:07 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 00:09:07 +0000
commit52b65bc2967fee1f6eba74c3a8f1ed65dc628912 (patch)
treec5c857c2dbf7d2f3012e3c487f339cd58b8ad09a
parent2e5d089eda127976bd9527ab472bdadd4891ca8e (diff)
downloadpoezio-52b65bc2967fee1f6eba74c3a8f1ed65dc628912.tar.gz
poezio-52b65bc2967fee1f6eba74c3a8f1ed65dc628912.tar.bz2
poezio-52b65bc2967fee1f6eba74c3a8f1ed65dc628912.tar.xz
poezio-52b65bc2967fee1f6eba74c3a8f1ed65dc628912.zip
Display the time of the message only once, fixed #1675
-rw-r--r--src/window.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py
index c33601de..f743169f 100644
--- a/src/window.py
+++ b/src/window.py
@@ -202,8 +202,8 @@ class TextWin(Win):
def build_lines_from_messages(self, messages):
"""
- From the n messages (n behing the height of the text area),
- returns the n last lines (Line object).
+ From all the existing messages in the window, create the that will
+ be displayed on the screen
"""
lines = []
for message in messages:
@@ -236,8 +236,11 @@ class TextWin(Win):
color = message.user.color if message.user else None
if not first:
nick = None
+ time = None
+ else:
+ time = message.time
l = Line(nick, color,
- message.time,
+ time,
txt[:limit], message.color,
offset)
lines.append(l)