# HG changeset patch # User Tim Ringenbach # Date 1085299598 0 # Node ID 697e169dac12ab787ab6464d18115a1e2a267fb8 # Parent 6fd7de3576721a1d4ce992dfde0168ed9c11dedf [gaim-migrate @ 9805] This should fix bug #953066 and #958331, where we would show the wrong smileys in the text entry when they were inserted without the usual protocol_name = protocol_name; +gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, const gchar *protocol_name) { + if (imhtml->protocol_name) + g_free(imhtml->protocol_name); + imhtml->protocol_name = protocol_name ? g_strdup(protocol_name) : NULL; } void diff -r 6fd7de357672 -r 697e169dac12 src/gtkimhtml.h --- a/src/gtkimhtml.h Sun May 23 06:28:29 2004 +0000 +++ b/src/gtkimhtml.h Sun May 23 08:06:38 2004 +0000 @@ -220,7 +220,7 @@ void gtk_imhtml_smiley_shortcuts (GtkIMHtml *imhtml, gboolean allow); -void gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, gchar *protocol_name); +void gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, const gchar *protocol_name); #define gtk_imhtml_append_text(x, y, z) \ gtk_imhtml_append_text_with_images(x, y, z, NULL)