Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.c @ 23797:35f7b7c62995
Remove calls to g_markup_escape_text. Not only does this help with old
GLib compatibility, but some of these calls were wrong, too. It just never
showed up because the code doesn't run yet.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 15 Aug 2008 04:27:42 +0000 |
parents | d572fb194e61 |
children | b664b3924a52 e22bcca9f2b2 e4fa83bb82e0 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Fri Aug 15 04:13:40 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Fri Aug 15 04:27:42 2008 +0000 @@ -713,10 +713,16 @@ if (name != NULL && *name) { char *tmp2; + tmp2 = g_markup_escape_text(name, -1); if (purple_presence_is_idle(presence)) { - tmp2 = g_markup_printf_escaped("%s/%s", name, _("Idle")); - } else { - tmp2 = g_markup_escape_text(name, -1); + char *idle; + char *tmp3; + /* Never know what those translations might end up like... */ + idle = g_markup_escape_text(_("Idle"), -1); + tmp3 = g_strdup_printf("%s/%s", tmp2, idle); + g_free(idle); + g_free(tmp2); + tmp2 = tmp3; } if (psm != NULL && *psm) {