Mercurial > pidgin
comparison src/gtkimhtmltoolbar.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 | 1a97d5e88d12 |
children | ffa44a5159e0 |
comparison
equal
deleted
inserted
replaced
10731:783ca1f1ebdb | 10732:c4cb90065e1d |
---|---|
589 insert_smiley_text(GtkWidget *widget, GtkIMHtmlToolbar *toolbar) | 589 insert_smiley_text(GtkWidget *widget, GtkIMHtmlToolbar *toolbar) |
590 { | 590 { |
591 char *smiley_text, *escaped_smiley; | 591 char *smiley_text, *escaped_smiley; |
592 | 592 |
593 smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text"); | 593 smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text"); |
594 escaped_smiley = gaim_escape_html(smiley_text); | 594 escaped_smiley = g_markup_escape_text(smiley_text, -1); |
595 | 595 |
596 gtk_imhtml_insert_smiley(GTK_IMHTML(toolbar->imhtml), | 596 gtk_imhtml_insert_smiley(GTK_IMHTML(toolbar->imhtml), |
597 GTK_IMHTML(toolbar->imhtml)->protocol_name, | 597 GTK_IMHTML(toolbar->imhtml)->protocol_name, |
598 escaped_smiley); | 598 escaped_smiley); |
599 | 599 |