changeset 20157:2a8b576590d8

Convert buddy notes to plain text before displaying in the tooltip to avoid invalid pango markup preventing the display of the entire tooltip text. Fixes #2657
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 18 Sep 2007 20:30:25 +0000
parents 5ad014c6e44b
children f76246d669c6
files pidgin/plugins/gtkbuddynote.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/gtkbuddynote.c	Tue Sep 18 20:16:51 2007 +0000
+++ b/pidgin/plugins/gtkbuddynote.c	Tue Sep 18 20:30:25 2007 +0000
@@ -31,8 +31,11 @@
 		const gchar *note = purple_blist_node_get_string(node, "notes");
 
 		if ((note != NULL) && (*note != '\0')) {
+			char *tmp;
+			purple_markup_html_to_xhtml(note, NULL, &tmp);
 			g_string_append_printf(text, _("\n<b>Buddy Note</b>: %s"),
-			                       note);
+			                       tmp);
+			g_free(tmp);
 		}
 	}
 }