summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-15 17:15:46 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-15 17:15:46 +0000
commitc38cb65080176d9e0d7a649c0d00e4a814d1ecb7 (patch)
tree1d7a429e0f52dc70b2e7890a29ce5da4881ae338 /src
parent883c0ec812c7479aacc9cab01915861dde4485c1 (diff)
downloadpoezio-c38cb65080176d9e0d7a649c0d00e4a814d1ecb7.tar.gz
poezio-c38cb65080176d9e0d7a649c0d00e4a814d1ecb7.tar.bz2
poezio-c38cb65080176d9e0d7a649c0d00e4a814d1ecb7.tar.xz
poezio-c38cb65080176d9e0d7a649c0d00e4a814d1ecb7.zip
fix print_scroll_position for private and conversation tabs
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py2
-rw-r--r--src/windows.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index bb9db89e..9de41fac 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -905,7 +905,7 @@ class ConversationTab(ChatTab):
return
self.text_win.refresh(self._room)
self.upper_bar.refresh(self.get_name(), roster.get_contact_by_jid(self.get_name()))
- self.info_header.refresh(self.get_name(), roster.get_contact_by_jid(self.get_name()), self._room)
+ self.info_header.refresh(self.get_name(), roster.get_contact_by_jid(self.get_name()), self._room, self.text_win)
self.info_win.refresh(informations)
self.tab_win.refresh(tabs, tabs[0])
self.input.refresh()
diff --git a/src/windows.py b/src/windows.py
index 7c87c59b..b137406d 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -209,12 +209,12 @@ class PrivateInfoWin(InfoWin):
def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr)
- def refresh(self, room):
+ def refresh(self, room, window):
with g_lock:
self._win.erase()
self.write_room_name(room)
- self.print_scroll_position(room)
+ self.print_scroll_position(window)
self.finish_line(theme.COLOR_INFORMATION_BAR)
self._refresh()
@@ -246,7 +246,7 @@ class ConversationInfoWin(InfoWin):
def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr)
- def refresh(self, jid, contact, text_buffer):
+ def refresh(self, jid, contact, text_buffer, window):
# contact can be None, if we receive a message
# from someone not in our roster. In this case, we display
# only the maximum information from the message we can get.
@@ -268,7 +268,7 @@ class ConversationInfoWin(InfoWin):
self.write_contact_jid(jid)
self.write_contact_informations(contact)
self.write_resource_information(resource)
- self.print_scroll_position(text_buffer)
+ self.print_scroll_position(window)
self.finish_line(theme.COLOR_INFORMATION_BAR)
self._refresh()