summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-06 03:22:19 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-06 03:31:47 +0100
commite3477d7db88e787442cf65afce95cd48ed927f56 (patch)
tree545d8f9e41b23d1de9ae724486bdc06ba07f4615 /src/windows.py
parent3412c119a911319d8e28debafdc47e27eb343fd4 (diff)
downloadpoezio-e3477d7db88e787442cf65afce95cd48ed927f56.tar.gz
poezio-e3477d7db88e787442cf65afce95cd48ed927f56.tar.bz2
poezio-e3477d7db88e787442cf65afce95cd48ed927f56.tar.xz
poezio-e3477d7db88e787442cf65afce95cd48ed927f56.zip
Remove the Room class. fixes #2122
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/windows.py b/src/windows.py
index dfe46a14..42c9bfa0 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -341,18 +341,18 @@ class PrivateInfoWin(InfoWin):
def __init__(self):
InfoWin.__init__(self)
- def refresh(self, room, window, chatstate):
+ def refresh(self, name, window, chatstate):
log.debug('Refresh: %s'%self.__class__.__name__)
with g_lock:
self._win.erase()
- self.write_room_name(room)
+ self.write_room_name(name)
self.print_scroll_position(window)
self.write_chatstate(chatstate)
self.finish_line(get_theme().COLOR_INFORMATION_BAR)
self._refresh()
- def write_room_name(self, room):
- jid = JID(room.name)
+ def write_room_name(self, name):
+ jid = JID(name)
room_name, nick = jid.bare, jid.resource
self.addstr(nick, to_curses_attr(get_theme().COLOR_PRIVATE_NAME))
txt = ' from room %s' % room_name
@@ -380,7 +380,7 @@ class ConversationInfoWin(InfoWin):
def __init__(self):
InfoWin.__init__(self)
- def refresh(self, jid, contact, text_buffer, window, chatstate):
+ def refresh(self, jid, contact, window, chatstate):
# 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.