projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f44ccf0
)
Fixes NB#135345, perform a case-insensitive emails comparison when looking for existi...
author
Sergio Villar Senin
<svillar@igalia.com>
Tue, 8 Sep 2009 08:59:31 +0000
(10:59 +0200)
committer
Sergio Villar Senin
<svillar@igalia.com>
Tue, 8 Sep 2009 08:59:40 +0000
(10:59 +0200)
src/hildon2/modest-address-book.c
patch
|
blob
|
history
diff --git
a/src/hildon2/modest-address-book.c
b/src/hildon2/modest-address-book.c
index
397f560
..
20fdd2b
100644
(file)
--- a/
src/hildon2/modest-address-book.c
+++ b/
src/hildon2/modest-address-book.c
@@
-500,11
+500,16
@@
compare_addresses (const gchar *address1,
const gchar *mail2)
{
gint retval;
- gchar *mail1;
+ gchar *mail1, *mail1_down, *mail2_down;
+ /* Perform a case insensitive comparison */
mail1 = modest_text_utils_get_email_address (address1);
- retval = g_strcmp0 (mail1, mail2);
+ mail1_down = g_ascii_strdown (mail1, -1);
+ mail2_down = g_ascii_strdown (mail2, -1);
+ retval = g_strcmp0 (mail1_down, mail2_down);
g_free (mail1);
+ g_free (mail1_down);
+ g_free (mail2_down);
return retval;
}