sort texts in completion list
This commit is contained in:
parent
1db4aa142b
commit
6db39b590d
1 changed files with 6 additions and 2 deletions
|
@ -1002,7 +1002,9 @@ class NewChatDialog(InputDialog):
|
||||||
liststore = gtkgui_helpers.get_completion_liststore(self.input_entry)
|
liststore = gtkgui_helpers.get_completion_liststore(self.input_entry)
|
||||||
self.completion_dict = helpers.get_contact_dict_for_account(account)
|
self.completion_dict = helpers.get_contact_dict_for_account(account)
|
||||||
# add all contacts to the model
|
# add all contacts to the model
|
||||||
for jid in self.completion_dict.keys():
|
keys = self.completion_dict.keys()
|
||||||
|
keys.sort()
|
||||||
|
for jid in keys:
|
||||||
contact = self.completion_dict[jid]
|
contact = self.completion_dict[jid]
|
||||||
img = gajim.interface.roster.jabber_state_images['16'][contact.show]
|
img = gajim.interface.roster.jabber_state_images['16'][contact.show]
|
||||||
liststore.append((img.get_pixbuf(), jid))
|
liststore.append((img.get_pixbuf(), jid))
|
||||||
|
@ -1246,7 +1248,9 @@ class SingleMessageWindow:
|
||||||
if to == '':
|
if to == '':
|
||||||
liststore = gtkgui_helpers.get_completion_liststore(self.to_entry)
|
liststore = gtkgui_helpers.get_completion_liststore(self.to_entry)
|
||||||
self.completion_dict = helpers.get_contact_dict_for_account(account)
|
self.completion_dict = helpers.get_contact_dict_for_account(account)
|
||||||
for jid in self.completion_dict.keys():
|
keys = self.completion_dict.keys()
|
||||||
|
keys.sort()
|
||||||
|
for jid in keys:
|
||||||
contact = self.completion_dict[jid]
|
contact = self.completion_dict[jid]
|
||||||
img = gajim.interface.roster.jabber_state_images['16'][
|
img = gajim.interface.roster.jabber_state_images['16'][
|
||||||
contact.show]
|
contact.show]
|
||||||
|
|
Loading…
Add table
Reference in a new issue