clean ups
This commit is contained in:
parent
a20a729ff3
commit
1e78707dab
|
@ -399,7 +399,6 @@ class GroupchatWindow(chat.Chat):
|
|||
status = status.strip()
|
||||
if status != '':
|
||||
status = gtkgui_helpers.reduce_chars_newlines(status, max_lines = 1)
|
||||
colorstring = 'dimgrey'
|
||||
# escape markup entities and make them small italic and fg color
|
||||
color = gtkgui_helpers._get_fade_color(self.list_treeview[room_jid],
|
||||
selected, focus)
|
||||
|
@ -433,7 +432,7 @@ class GroupchatWindow(chat.Chat):
|
|||
|
||||
def chg_contact_status(self, room_jid, nick, show, status, role, affiliation,
|
||||
jid, reason, actor, statusCode, new_nick, account):
|
||||
'''When a user changes his or her status'''
|
||||
'''When an occupant changes his or her status'''
|
||||
if show == 'invisible':
|
||||
return
|
||||
if not role:
|
||||
|
|
|
@ -110,8 +110,6 @@ class RosterWindow:
|
|||
model = self.tree.get_model()
|
||||
if self.get_account_iter(account):
|
||||
return
|
||||
show_list = ['offline', 'connecting', 'online', 'chat',
|
||||
'away', 'xa', 'dnd', 'invisible']
|
||||
|
||||
if self.regroup:
|
||||
show = helpers.get_global_show()
|
||||
|
@ -119,7 +117,7 @@ class RosterWindow:
|
|||
_('Merged accounts'), 'account', '', 'all', False, None])
|
||||
return
|
||||
|
||||
show = show_list[gajim.connections[account].connected]
|
||||
show = gajim.SHOW_LIST[gajim.connections[account].connected]
|
||||
|
||||
tls_pixbuf = None
|
||||
if gajim.con_types.has_key(account) and \
|
||||
|
|
Loading…
Reference in New Issue