Mercurial > pidgin.yaz
changeset 8920:87fcb56feeca
[gaim-migrate @ 9690]
" [20:44] <marv> Gtk: Failed to set label from markup due
to error parsing markup: Error on line 6: Character ' '
is not valid at the start of an entity name; the &
character begins an entity; if this ampersand isn't
supposed to be an entity, escape it as &
Well, this fixes that." --Felipe Contreras
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 12 May 2004 03:45:42 +0000 |
parents | f37992e86e66 |
children | 538a78ff9fdb |
files | src/gtknotify.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Wed May 12 03:42:13 2004 +0000 +++ b/src/gtknotify.c Wed May 12 03:45:42 2004 +0000 @@ -225,14 +225,20 @@ if (froms != NULL) { + char *from_enc; + from_enc = g_markup_escape_text(*froms, -1); from_text = g_strdup_printf( - _("<span weight=\"bold\">From:</span> %s\n"), *froms); + _("<span weight=\"bold\">From:</span> %s\n"), from_enc); + g_free(from_enc); } if (subjects != NULL) { + char *subject_enc; + subject_enc = g_markup_escape_text(*subjects, -1); subject_text = g_strdup_printf( - _("<span weight=\"bold\">Subject:</span> %s\n"), *subjects); + _("<span weight=\"bold\">Subject:</span> %s\n"), subject_enc); + g_free(subject_enc); } label_text = g_strdup_printf(