Mercurial > pidgin
diff src/gtkimhtml.c @ 11750:21aff66af1e7
[gaim-migrate @ 14041]
Inserting a smiley with text selected will now replace that text with the
smiley. I have a feeling there's a bug report about this somewhere.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 23 Oct 2005 13:13:21 +0000 |
parents | 5d7da4056644 |
children | c0fca40fd938 |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sun Oct 23 13:12:08 2005 +0000 +++ b/src/gtkimhtml.c Sun Oct 23 13:13:21 2005 +0000 @@ -4344,6 +4344,9 @@ GtkTextMark *mark; GtkTextIter iter; + if (gtk_text_buffer_get_selection_bounds(imhtml->text_buffer, NULL, NULL)) + gtk_text_buffer_delete_selection(imhtml->text_buffer, TRUE, TRUE); + mark = gtk_text_buffer_get_insert(imhtml->text_buffer); gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, mark);