diff src/browser/sat_browser/chat.py @ 808:9e1e6d5241f9

browser_side: restore printing the day change while displaying history
author souliane <souliane@mailoo.org>
date Tue, 15 Dec 2015 20:04:03 +0100
parents 0576fec37be0
children 55a2cf64ffee
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Tue Dec 15 19:35:00 2015 +0100
+++ b/src/browser/sat_browser/chat.py	Tue Dec 15 20:04:03 2015 +0100
@@ -245,6 +245,13 @@
         self.content.add(ChatText(timestamp, nick, my_message, message, extra))
         self.content_scroll.scrollToBottom()
 
+    def printDayChange(self, day):
+        """Display the day on a new line.
+
+        @param day(unicode): day to display (or not if this method is not overwritten)
+        """
+        self.printInfo("* " + day)
+
     def setTitle(self, title=None, extra=None):
         """Refresh the title of this Chat dialog