aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-07-22 21:02:06 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-07-30 19:11:40 +0800
commitfa60b75334999bedb28dfacdbb5a73f1cc62193a (patch)
tree984954ebfd8b08e71ff436e00399f003aff127c9 /libempathy-gtk
parent9ab5da340ffe6f13afc5b3e32682635980b96ad5 (diff)
downloadgsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar.gz
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar.bz2
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar.lz
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar.xz
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.tar.zst
gsoc2013-empathy-fa60b75334999bedb28dfacdbb5a73f1cc62193a.zip
Make livesearch work if accentued letters are pre-decomposed
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-live-search.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index e0f5e193f..8a627ead1 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -84,7 +84,9 @@ stripped_char (gunichar ch)
case G_UNICODE_CONTROL:
case G_UNICODE_FORMAT:
case G_UNICODE_UNASSIGNED:
+ case G_UNICODE_NON_SPACING_MARK:
case G_UNICODE_COMBINING_MARK:
+ case G_UNICODE_ENCLOSING_MARK:
/* Ignore those */
break;
default:
@@ -120,16 +122,14 @@ strip_utf8_string (const gchar *string)
/* Strip this word */
while (*p != '\0')
{
- gunichar c;
gunichar sc;
- c = g_utf8_get_char (p);
- if (!g_unichar_isalnum (c))
- break;
-
- sc = stripped_char (c);
+ sc = stripped_char (g_utf8_get_char (p));
if (sc != 0)
{
+ if (!g_unichar_isalnum (sc))
+ break;
+
if (str == NULL)
str = g_string_new (NULL);
g_string_append_unichar (str, sc);