Author: asterix Date: 2008-10-12 21:17:09 +0200 (Sun, 12 Oct 2008) New Revision: 10530
Modified: trunk/src/groupchat_control.py trunk/src/roster_window.py Log: show minimized room in roster in red if we have been highlighted.
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2008-10-12 12:52:26 UTC (rev 10529) +++ trunk/src/groupchat_control.py 2008-10-12 19:17:09 UTC (rev 10530) @@ -818,6 +818,8 @@ # 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')
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2008-10-12 12:52:26 UTC (rev 10529) +++ trunk/src/roster_window.py 2008-10-12 19:17:09 UTC (rev 10530) @@ -4238,7 +4238,15 @@ 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: