we now print when a user change its status, so no need to make room legacy

This commit is contained in:
Yann Leboulanger 2005-06-04 13:25:26 +00:00
parent f85af4f4cd
commit 913128901d
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class Groupchat_window(chat.Chat):
self.subjects = {}
self.subject_entry = {}
self.subject_entry_tooltip = {}
self.room_creation = {}
self.new_room(room_jid, nick)
self.show_title()
self.xml.signal_connect('on_groupchat_window_destroy',
@ -260,6 +261,11 @@ class Groupchat_window(chat.Chat):
image = state_images[show]
model.set_value(iter, 0, image)
model.set_value(iter, 3, show)
if (time.time() - self.room_creation[room_jid]) > 30 and \
nick != self.nicks[room_jid]:
self.print_conversation(_('%s is now %s (%s)') % (nick,
show, status), room_jid)
def set_subject(self, room_jid, subject):
self.subjects[room_jid] = subject
@ -522,6 +528,7 @@ class Groupchat_window(chat.Chat):
chat.Chat.new_tab(self, room_jid)
self.nicks[room_jid] = nick
self.subjects[room_jid] = ''
self.room_creation[room_jid] = time.time()
self.list_treeview[room_jid] = self.xmls[room_jid].get_widget(
'list_treeview')
conversation_textview = self.xmls[room_jid].get_widget(