clean ups
This commit is contained in:
parent
a20a729ff3
commit
1e78707dab
2 changed files with 3 additions and 6 deletions
|
@ -399,7 +399,6 @@ class GroupchatWindow(chat.Chat):
|
||||||
status = status.strip()
|
status = status.strip()
|
||||||
if status != '':
|
if status != '':
|
||||||
status = gtkgui_helpers.reduce_chars_newlines(status, max_lines = 1)
|
status = gtkgui_helpers.reduce_chars_newlines(status, max_lines = 1)
|
||||||
colorstring = 'dimgrey'
|
|
||||||
# escape markup entities and make them small italic and fg color
|
# escape markup entities and make them small italic and fg color
|
||||||
color = gtkgui_helpers._get_fade_color(self.list_treeview[room_jid],
|
color = gtkgui_helpers._get_fade_color(self.list_treeview[room_jid],
|
||||||
selected, focus)
|
selected, focus)
|
||||||
|
@ -433,7 +432,7 @@ class GroupchatWindow(chat.Chat):
|
||||||
|
|
||||||
def chg_contact_status(self, room_jid, nick, show, status, role, affiliation,
|
def chg_contact_status(self, room_jid, nick, show, status, role, affiliation,
|
||||||
jid, reason, actor, statusCode, new_nick, account):
|
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':
|
if show == 'invisible':
|
||||||
return
|
return
|
||||||
if not role:
|
if not role:
|
||||||
|
|
|
@ -110,8 +110,6 @@ class RosterWindow:
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
if self.get_account_iter(account):
|
if self.get_account_iter(account):
|
||||||
return
|
return
|
||||||
show_list = ['offline', 'connecting', 'online', 'chat',
|
|
||||||
'away', 'xa', 'dnd', 'invisible']
|
|
||||||
|
|
||||||
if self.regroup:
|
if self.regroup:
|
||||||
show = helpers.get_global_show()
|
show = helpers.get_global_show()
|
||||||
|
@ -119,7 +117,7 @@ class RosterWindow:
|
||||||
_('Merged accounts'), 'account', '', 'all', False, None])
|
_('Merged accounts'), 'account', '', 'all', False, None])
|
||||||
return
|
return
|
||||||
|
|
||||||
show = show_list[gajim.connections[account].connected]
|
show = gajim.SHOW_LIST[gajim.connections[account].connected]
|
||||||
|
|
||||||
tls_pixbuf = None
|
tls_pixbuf = None
|
||||||
if gajim.con_types.has_key(account) and \
|
if gajim.con_types.has_key(account) and \
|
||||||
|
@ -234,7 +232,7 @@ class RosterWindow:
|
||||||
return self.transports_state_images[transport]
|
return self.transports_state_images[transport]
|
||||||
return self.jabber_state_images
|
return self.jabber_state_images
|
||||||
|
|
||||||
def draw_contact(self, jid, account, selected=False, focus=False):
|
def draw_contact(self, jid, account, selected = False, focus = False):
|
||||||
'''draw the correct state image, name and avatar'''
|
'''draw the correct state image, name and avatar'''
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
iters = self.get_contact_iter(jid, account)
|
iters = self.get_contact_iter(jid, account)
|
||||||
|
|
Loading…
Add table
Reference in a new issue