aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-25 21:10:53 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-25 21:32:33 +0800
commita1e899504c6e19c56c7cdc31186d65b96881b898 (patch)
tree546859ec08d38e0a37c12936c9bfe6355a41d8bc /libempathy-gtk
parent5ccd14f47a13b5a0d00a48ec85b4c9dab6eb3bc9 (diff)
downloadgsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar.gz
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar.bz2
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar.lz
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar.xz
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.tar.zst
gsoc2013-empathy-a1e899504c6e19c56c7cdc31186d65b96881b898.zip
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.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-live-search.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index 968adca77..3dc77998c 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;