From 0d28a9dc58039b9960e4fabd785f86b5d4b75ea6 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Fri, 27 Jan 2006 04:59:05 +0000 Subject: [PATCH] Window title fixes for #1386 --- src/message_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/message_window.py b/src/message_window.py index 7e87ce88d..326e6dc74 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -212,6 +212,7 @@ class MessageWindow: ctrl.attention_flag: continue unread += ctrl.nb_unread + unread_str = '' if unread > 1: unread_str = '[' + unicode(unread) + '] ' @@ -223,10 +224,14 @@ class MessageWindow: if not control: control = self.get_active_control() if control.type_id == message_control.TYPE_GC: - title = unread_str + control.room_jid + name = control.room_jid.split('@')[0] urgent = control.attention_flag else: - title = unread_str + control.contact.get_shown_name() + name = control.contact.get_shown_name() + + mc_type = control.display_name + ": " + account = ' (' + _('account: ') + self.get_active_control().account + ')' + title = unread_str + mc_type + name + account self.window.set_title(title)