improve and add comments to make code more readable

This commit is contained in:
Nikos Kouremenos 2005-10-18 12:41:56 +00:00
parent f1b8cc1246
commit 947c7c59c4
2 changed files with 6 additions and 1 deletions

View File

@ -504,6 +504,9 @@ class GroupchatWindow(chat.Chat):
self.subject_tooltip[room_jid].set_tip(event_box, subject)
def get_specific_unread(self, room_jid):
# returns the number of the number of unread msgs
# for room_jid & number of unread private msgs with each contact
# that we have
nb = 0
for nick in self.get_nick_list(room_jid):
fjid = room_jid + '/' + nick

View File

@ -271,7 +271,9 @@ class TabbedChatWindow(chat.Chat):
self.paint_banner(jid)
def get_specific_unread(self, jid):
# return the number of unread for contacts in the room when gc, 0 in tc
# return the number of unread (private) msgs with contacts in the room
# when gc, and that is 0 in tc
# FIXME: maybe refactor so this func is not called at all if TC?
return 0
def show_avatar(self, jid, resource):