From 759f6a49f60d8d86d1572c660a6117b36956a88f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 5 Feb 2006 18:42:41 +0000 Subject: [PATCH] Fix TB when changing status and pm opened --- src/chat_control.py | 5 +++-- src/gajim.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 8da27aa30..65000a1c6 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1464,8 +1464,9 @@ class ChatControl(ChatControlBase): tb.set_active(not tb.get_active()) def got_connected(self): + #FIXME: We can remove this function ? it's usefull only in GC ChatControlBase.got_connected(self) # Refreshing contact - self.contact = gajim.contacts.get_contact_with_highest_priority(self.account, - self.contact.jid) + self.contact = gajim.contacts.get_contact_with_highest_priority( + self.account, self.contact.jid) self.draw_banner() diff --git a/src/gajim.py b/src/gajim.py index a0b71d5fd..303ee2291 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -280,7 +280,8 @@ class Interface: model[self.roster.status_message_menuitem_iter][3] = True # Inform all controls for this account of the connection state change - for ctrl in gajim.interface.msg_win_mgr.controls(): + for ctrl in gajim.interface.msg_win_mgr.get_controls( + type = message_control.TYPE_GC): if ctrl.account == account: if status == 'offline': ctrl.got_disconnected()