# HG changeset patch # User Luke Schierer # Date 1084333542 0 # Node ID 87fcb56feeca95f0600e771ab67105a765a178f1 # Parent f37992e86e66010a44036051dac3cd6073ad532c [gaim-migrate @ 9690] " [20:44] 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 diff -r f37992e86e66 -r 87fcb56feeca src/gtknotify.c --- 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( - _("From: %s\n"), *froms); + _("From: %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( - _("Subject: %s\n"), *subjects); + _("Subject: %s\n"), subject_enc); + g_free(subject_enc); } label_text = g_strdup_printf(