show * in gc tab when one message

This commit is contained in:
Yann Leboulanger 2006-10-04 11:12:45 +00:00
parent 683c3145e0
commit d55e56f0b9
1 changed files with 3 additions and 1 deletions

View File

@ -397,7 +397,9 @@ class GroupchatControl(ChatControlBase):
jid = self.contact.jid
num_unread = len(gajim.events.get_events(self.account, jid,
['printed_gc_msg']))
if num_unread > 1:
if num_unread == 1:
unread = '*'
elif num_unread > 1:
unread = '[' + unicode(num_unread) + ']'
label_str = unread + label_str
return (label_str, color)