update urgency hint in function of the correct control, not the active one

This commit is contained in:
Yann Leboulanger 2006-02-27 21:26:58 +00:00
parent 65ca70d29f
commit 2af0a1dd29
1 changed files with 3 additions and 1 deletions

View File

@ -394,7 +394,9 @@ class ChatControlBase(MessageControl):
gajim.interface.systray.add_jid(jid, self.account, self.type_id)
self.parent_win.redraw_tab(self)
if not self.parent_win.is_active():
self.parent_win.show_title(urgent)
ctrl = gajim.interface.msg_win_mgr.get_control(jid,
self.account)
self.parent_win.show_title(urgent, ctrl)
def toggle_emoticons(self):
'''hide show emoticons_button and make sure emoticons_menu is always there