* src/hildon2/modest-address-book.c (filter_by_name): use case insensitive
filtering (fixes NB#135191).
#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"
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;