diff src/gtkimhtml.c @ 10732:c4cb90065e1d

[gaim-migrate @ 12334] "gaim_escape_html (according to Ethan) predates g_markup_escape_text. Current code in Gaim uses both functions. This patch removes gaim_escape_html from the API and replaces all calls in the Gaim tree with g_markup_escape_text. I included a ChangeLog.API note. As far as I can tell, this still works perfectly. This is obviously intended for HEAD only, as it removes a public function." --rlaager this was discussed extensively this morning committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 26 Mar 2005 02:43:49 +0000
parents c8b4bf3bf9e5
children 7c6b69eb82f2
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Mar 26 01:20:31 2005 +0000
+++ b/src/gtkimhtml.c	Sat Mar 26 02:43:49 2005 +0000
@@ -793,7 +793,7 @@
 	if (text == NULL)
 		return;
 
-	tmp = gaim_escape_html(text);
+	tmp = g_markup_escape_text(text, -1);
 	imhtml_paste_insert(data, tmp, TRUE);
 	g_free(tmp);
 }
@@ -1481,7 +1481,7 @@
 				gaim_debug_warning("gtkimhtml", "empty string or invalid UTF-8 in drag_rcv_cb\n");
 				return;
 			} else {
-				char *tmp = gaim_escape_html(text);
+				char *tmp = g_markup_escape_text(text, -1);
 				gtk_imhtml_insert_html_at_iter(imhtml, tmp, 0, &iter);
 				g_free(tmp);
 			}