show minimized room in roster in red if we have been highlighted.
This commit is contained in:
parent
02ac05ed19
commit
974543edf0
2 changed files with 11 additions and 1 deletions
|
@ -818,6 +818,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
# muc-specific chatstate
|
# muc-specific chatstate
|
||||||
if self.parent_win:
|
if self.parent_win:
|
||||||
self.parent_win.redraw_tab(self, 'attention')
|
self.parent_win.redraw_tab(self, 'attention')
|
||||||
|
else:
|
||||||
|
self.attention_flag = True
|
||||||
other_tags_for_name.append('bold')
|
other_tags_for_name.append('bold')
|
||||||
other_tags_for_text.append('marked')
|
other_tags_for_text.append('marked')
|
||||||
|
|
||||||
|
|
|
@ -4238,7 +4238,15 @@ class RosterWindow:
|
||||||
return
|
return
|
||||||
jid = model[titer][C_JID].decode('utf-8')
|
jid = model[titer][C_JID].decode('utf-8')
|
||||||
account = model[titer][C_ACCOUNT].decode('utf-8')
|
account = model[titer][C_ACCOUNT].decode('utf-8')
|
||||||
color = gajim.config.get_per('themes', theme, 'contacttextcolor')
|
color = None
|
||||||
|
if type_ == 'groupchat':
|
||||||
|
ctrl = gajim.interface.minimized_controls[account].get(jid, None)
|
||||||
|
if ctrl and ctrl.attention_flag:
|
||||||
|
color = gajim.config.get_per('themes', theme,
|
||||||
|
'state_muc_directed_msg_color')
|
||||||
|
renderer.set_property('foreground', 'red')
|
||||||
|
if not color:
|
||||||
|
color = gajim.config.get_per('themes', theme, 'contacttextcolor')
|
||||||
if color:
|
if color:
|
||||||
renderer.set_property('foreground', color)
|
renderer.set_property('foreground', color)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue