diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-12 23:17:09 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-12 23:17:09 +0400 |
commit | 974543edf0a4914f6d8f654e2c6511d3cba4686d (patch) | |
tree | 3b868814e3e842c976ec3c89841ed0a65fddea2c | |
parent | 02ac05ed198d51b39ee2e64335e54482c8c300bd (diff) |
show minimized room in roster in red if we have been highlighted.
-rw-r--r-- | src/groupchat_control.py | 2 | ||||
-rw-r--r-- | src/roster_window.py | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 3e6cb971a..5af367776 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -818,6 +818,8 @@ class GroupchatControl(ChatControlBase): # muc-specific chatstate if self.parent_win: self.parent_win.redraw_tab(self, 'attention') + else: + self.attention_flag = True other_tags_for_name.append('bold') other_tags_for_text.append('marked') diff --git a/src/roster_window.py b/src/roster_window.py index febef4d55..28ca72b46 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4238,7 +4238,15 @@ class RosterWindow: return jid = model[titer][C_JID].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: renderer.set_property('foreground', color) else: |