diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-14 23:26:45 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-14 23:26:45 +0800 |
commit | 3496bec16b5ab493136bc7ee30242b4d1ce6453a (patch) | |
tree | 6daee9d0146559670e24d3880762471fc89ba490 /libempathy-gtk/empathy-chat.c | |
parent | 82dc265d727215af29471fcee699b9437adcc819 (diff) | |
download | gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.gz gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.bz2 gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.lz gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.xz gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.zst gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.zip |
Fix bug #526145.
svn path=/trunk/; revision=941
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 34bd39831..cdddf2d6c 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1211,6 +1211,13 @@ chat_contacts_completion_func (const gchar *s1, gchar *tmp, *nick1, *nick2; gint ret; + if (s1 == s2) { + return 0; + } + if (!s1 || !s2) { + return s1 ? -1 : +1; + } + tmp = g_utf8_normalize (s1, -1, G_NORMALIZE_DEFAULT); nick1 = g_utf8_casefold (tmp, -1); g_free (tmp); |