[empathy] use g_unichar_fully_decompose instead of g_unicode_canonical_decomposition



commit a1e899504c6e19c56c7cdc31186d65b96881b898
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Oct 25 15:10:53 2011 +0200

    use g_unichar_fully_decompose instead of g_unicode_canonical_decomposition
    
    The latter has been deprecated and g_unichar_fully_decompose() is already in
    2.30.

 libempathy-gtk/empathy-live-search.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index 968adca..3dc7799 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]