comparison src/gtkconv.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 2f646d020011
children b7f0bc436179
comparison
equal deleted inserted replaced
10731:783ca1f1ebdb 10732:c4cb90065e1d
305 char *tmp, *markup; 305 char *tmp, *markup;
306 GaimCmdStatus status; 306 GaimCmdStatus status;
307 307
308 if (!g_ascii_strcasecmp(args[0], "version")) { 308 if (!g_ascii_strcasecmp(args[0], "version")) {
309 tmp = g_strdup_printf(_("me is using Gaim v%s."), VERSION); 309 tmp = g_strdup_printf(_("me is using Gaim v%s."), VERSION);
310 markup = gaim_escape_html(tmp); 310 markup = g_markup_escape_text(tmp, -1);
311 311
312 status = gaim_cmd_do_command(conv, tmp, markup, error); 312 status = gaim_cmd_do_command(conv, tmp, markup, error);
313 313
314 g_free(tmp); 314 g_free(tmp);
315 g_free(markup); 315 g_free(markup);
5347 5347
5348 if (*color != '\0') 5348 if (*color != '\0')
5349 { 5349 {
5350 char *html_title,*label; 5350 char *html_title,*label;
5351 5351
5352 html_title = gaim_escape_html(title); 5352 html_title = g_markup_escape_text(title, -1);
5353 5353
5354 label = g_strdup_printf("<span color=\"%s\">%s</span>", 5354 label = g_strdup_printf("<span color=\"%s\">%s</span>",
5355 color, html_title); 5355 color, html_title);
5356 g_free(html_title); 5356 g_free(html_title);
5357 gtk_label_set_markup(GTK_LABEL(gtkconv->tab_label), label); 5357 gtk_label_set_markup(GTK_LABEL(gtkconv->tab_label), label);