Mercurial > pidgin
changeset 7729:2ffb337be055
[gaim-migrate @ 8374]
wysiwyg underlining
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 03 Dec 2003 17:29:48 +0000 |
parents | 043fa48f2cc2 |
children | 01eb54bb41dc |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Wed Dec 03 16:41:29 2003 +0000 +++ b/src/gtkimhtml.c Wed Dec 03 17:29:48 2003 +0000 @@ -1975,25 +1975,33 @@ gtk_text_iter_forward_chars(iter, len); gtk_text_buffer_apply_tag_by_name(imhtml->text_buffer, "BOLD", &bold, iter); } - + if ((span = imhtml->edit.italic)) { GtkTextIter italic; gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &italic, span->start); - gtk_text_buffer_apply_tag_by_name(imhtml->text_buffer, "ITALICS", &italic, iter); + gtk_text_buffer_apply_tag_by_name(imhtml->text_buffer, "ITALICS", &italic, + iter); } - + + if ((span = imhtml->edit.underline)) { + GtkTextIter underline; + gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &underline, span->start); + gtk_text_buffer_apply_tag_by_name(imhtml->text_buffer, "UNDERLINE", &underline, + iter); + } + if ((span = imhtml->edit.forecolor)) { GtkTextIter fore; gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &fore, span->start); gtk_text_buffer_apply_tag(imhtml->text_buffer, span->tag, &fore, iter); } - + if ((span = imhtml->edit.backcolor)) { GtkTextIter back; gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &back, span->start); gtk_text_buffer_apply_tag(imhtml->text_buffer, span->tag, &back, iter); } - + if ((span = imhtml->edit.fontface)) { GtkTextIter face; gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &face, span->start);