Mercurial > pidgin
diff src/gtkimhtml.c @ 10666:b39d5850883a
[gaim-migrate @ 12206]
Igor Belyi thinks the correct way to maintain persistent formatting is to let
default formatting override it. I'm not sure if I agree yet, but I'll try it
out.
Also, this increases the need for HTML pastes into the conversation to end
all their tags at the end of the paste. I think I did this with the gtkimhtml.c
change, but I'm not positive.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 07 Mar 2005 18:58:52 +0000 |
parents | 9887014b7390 |
children | 533060d9a2c6 |
line wrap: on
line diff
--- a/src/gtkimhtml.c Mon Mar 07 18:36:34 2005 +0000 +++ b/src/gtkimhtml.c Mon Mar 07 18:58:52 2005 +0000 @@ -704,7 +704,9 @@ gtk_imhtml_close_tags(imhtml, &iter); gtk_imhtml_insert_html_at_iter(imhtml, text, flags, &iter); - gtk_text_buffer_move_mark_by_name(imhtml->text_buffer, "insert", &iter); + if (!imhtml->wbfo && !plaintext) + gtk_imhtml_close_tags(imhtml, &iter); + gtk_text_buffer_move_mark_by_name(imhtml->text_buffer, "insert", &iter); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(imhtml), gtk_text_buffer_get_insert(imhtml->text_buffer), 0, FALSE, 0.0, 0.0); } @@ -2709,9 +2711,6 @@ g_list_free(imhtml->scalables); imhtml->scalables = NULL; - gtk_imhtml_close_tags(imhtml, &start); - - g_signal_emit(object, signals[CLEAR_FORMAT], 0); g_object_unref(object); }