s/list_users/contacts_list/
This commit is contained in:
parent
884ff33383
commit
ef252ead1e
|
@ -208,7 +208,7 @@ class GroupchatWindow(chat.Chat):
|
||||||
return self.contacts[room_jid].keys()
|
return self.contacts[room_jid].keys()
|
||||||
|
|
||||||
def remove_user(self, room_jid, nick):
|
def remove_user(self, room_jid, nick):
|
||||||
"""Remove a user from the list_users"""
|
"""Remove a user from the contacts_list"""
|
||||||
model = self.list_treeview[room_jid].get_model()
|
model = self.list_treeview[room_jid].get_model()
|
||||||
iter = self.get_contact_iter(room_jid, nick)
|
iter = self.get_contact_iter(room_jid, nick)
|
||||||
if not iter:
|
if not iter:
|
||||||
|
|
|
@ -173,8 +173,8 @@ class HistoryWindow:
|
||||||
xml = gtk.glade.XML(GTKGUI_GLADE, 'history_window', APP)
|
xml = gtk.glade.XML(GTKGUI_GLADE, 'history_window', APP)
|
||||||
self.window = xml.get_widget('history_window')
|
self.window = xml.get_widget('history_window')
|
||||||
if account and gajim.contacts[account].has_key(jid):
|
if account and gajim.contacts[account].has_key(jid):
|
||||||
list_users = gajim.contacts[account][self.jid]
|
contacts_list = gajim.contacts[account][self.jid]
|
||||||
user = list_users[0]
|
user = contacts_list[0]
|
||||||
title = 'Conversation History with ' + user.name
|
title = 'Conversation History with ' + user.name
|
||||||
else:
|
else:
|
||||||
title = 'Conversation History with ' + jid
|
title = 'Conversation History with ' + jid
|
||||||
|
|
|
@ -167,14 +167,14 @@ class TabbedChatWindow(chat.Chat):
|
||||||
def set_state_image(self, jid):
|
def set_state_image(self, jid):
|
||||||
prio = 0
|
prio = 0
|
||||||
if gajim.contacts[self.account].has_key(jid):
|
if gajim.contacts[self.account].has_key(jid):
|
||||||
list_users = gajim.contacts[self.account][jid]
|
contacts_list = gajim.contacts[self.account][jid]
|
||||||
else:
|
else:
|
||||||
list_users = [self.contacts[jid]]
|
contacts_list = [self.contacts[jid]]
|
||||||
user = list_users[0]
|
user = contacts_list[0]
|
||||||
show = user.show
|
show = user.show
|
||||||
jid = user.jid
|
jid = user.jid
|
||||||
keyID = user.keyID
|
keyID = user.keyID
|
||||||
for u in list_users:
|
for u in contacts_list:
|
||||||
if u.priority > prio:
|
if u.priority > prio:
|
||||||
prio = u.priority
|
prio = u.priority
|
||||||
show = u.show
|
show = u.show
|
||||||
|
|
Loading…
Reference in New Issue