search lowercase in roster. see #3749

This commit is contained in:
Yann Leboulanger 2008-02-27 10:18:56 +00:00
parent e0a4ab05b4
commit aa3c02efcd
1 changed files with 2 additions and 1 deletions

View File

@ -5340,7 +5340,8 @@ class RosterWindow:
self.draw_contact(jid, account, selected = True)
def search_roster_func(self, model, column, key, iter):
if model[iter][C_NAME].decode('utf-8').startswith(gobject.markup_escape_text(key)):
if model[iter][C_NAME].decode('utf-8').lower().startswith(
gobject.markup_escape_text(key.lower())):
return False
return True