On showing the check names "select contact" dialog, filter properly case.
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 27 Aug 2009 09:32:02 +0000 (11:32 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 27 Aug 2009 23:13:09 +0000 (01:13 +0200)
* src/hildon2/modest-address-book.c (filter_by_name): use case insensitive
  filtering (fixes NB#135191).

src/hildon2/modest-address-book.c

index 05c2b86..d6d06c0 100644 (file)
@@ -38,6 +38,7 @@
 #include <libebook/e-vcard.h>
 #include "modest-hildon-includes.h"
 #include <libosso-abook/osso-abook.h>
 #include <libebook/e-vcard.h>
 #include "modest-hildon-includes.h"
 #include <libosso-abook/osso-abook.h>
+#include <libedataserver/e-data-server-util.h>
 #include "modest-platform.h"
 #include "modest-runtime.h"
 #include "widgets/modest-window-mgr.h"
 #include "modest-platform.h"
 #include "modest-runtime.h"
 #include "widgets/modest-window-mgr.h"
@@ -941,7 +942,7 @@ filter_by_name (OssoABookContactChooser *chooser,
 
        contact_name = osso_abook_contact_get_name (contact);
        /* contact_name includes both name and surname */
 
        contact_name = osso_abook_contact_get_name (contact);
        /* contact_name includes both name and surname */
-       if (contact_name && name && strstr (contact_name, name))
+       if (contact_name && name && e_util_utf8_strstrcase (contact_name, name))
                return TRUE;
        else
                return FALSE;
                return TRUE;
        else
                return FALSE;