Skip to content
Snippets Groups Projects
Commit 721acff7 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

tab name and window title now contain resource if needed. see #1697

parent db7766ea
No related branches found
No related tags found
No related merge requests found
......@@ -1101,8 +1101,10 @@ class ChatControl(ChatControlBase):
self.parent_win.get_active_control() != self:
color = self.lighten_color(color)
label_str = gtkgui_helpers.escape_for_pango_markup(
self.contact.get_shown_name())
name = self.contact.get_shown_name()
if self.resource:
name += '/' + self.resource
label_str = gtkgui_helpers.escape_for_pango_markup(name)
if num_unread: # if unread, text in the label becomes bold
label_str = '<b>' + unread + label_str + '</b>'
return (label_str, color)
......
......@@ -222,6 +222,8 @@ class MessageWindow:
urgent = control.attention_flag
else:
name = control.contact.get_shown_name()
if control.resource:
name += '/' + control.resource
window_mode = gajim.interface.msg_win_mgr.mode
if self.get_num_controls() == 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment