]> git.0d.be Git - empathy.git/commitdiff
use g_unichar_fully_decompose instead of g_unicode_canonical_decomposition
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 25 Oct 2011 13:10:53 +0000 (15:10 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 25 Oct 2011 13:32:33 +0000 (15:32 +0200)
The latter has been deprecated and g_unichar_fully_decompose() is already in
2.30.

libempathy-gtk/empathy-live-search.c

index 968adca770387254263cae7bf44db1b79e42f489..3dc77998c39d7d24d9f644a5098ea8f0cfe45db7 100644 (file)
@@ -73,8 +73,6 @@ stripped_char (gunichar ch)
 {
   gunichar retval = 0;
   GUnicodeType utype;
-  gunichar *decomp;
-  gsize dlen;
 
   utype = g_unichar_type (ch);
 
@@ -114,12 +112,7 @@ stripped_char (gunichar ch)
     case G_UNICODE_SPACE_SEPARATOR:
     default:
       ch = g_unichar_tolower (ch);
-      decomp = g_unicode_canonical_decomposition (ch, &dlen);
-      if (decomp != NULL)
-        {
-          retval = decomp[0];
-          g_free (decomp);
-        }
+      g_unichar_fully_decompose (ch, FALSE, &retval, 1);
     }
 
   return retval;