Mercurial > pidgin.yaz
changeset 15350:635cc5247696
[gaim-migrate @ 18142]
Inserting smileys using the smiley-dialog was broken. This is probably a hack, but it fixes that problem.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 17 Jan 2007 06:29:23 +0000 |
parents | 804e69c8ce23 |
children | 682908b965cf |
files | gtk/gtkimhtml.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk/gtkimhtml.c Tue Jan 16 22:51:40 2007 +0000 +++ b/gtk/gtkimhtml.c Wed Jan 17 06:29:23 2007 +0000 @@ -4544,6 +4544,8 @@ gtk_widget_show(icon); ianchor = gtk_imhtml_anchor_new(anchor, icon); imhtml->anchors = g_slist_append(imhtml->anchors, ianchor); + if (imhtml->text_buffer == GTK_TEXT_VIEW(imhtml)->buffer) + gtk_imhtml_add_anchor(imhtml, ianchor); } else if (imhtml_smiley != NULL && (imhtml->format_functions & GTK_IMHTML_SMILEY)) { anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); imhtml_smiley->anchors = g_slist_append(imhtml_smiley->anchors, anchor);