Mercurial > pidgin.yaz
diff pidgin/gtkimhtml.c @ 18291:db4b0aa4ed8c
Re-arrange a few lines in gtkimhtml's paste function so that we reset formatting after moving the cursor to the new location. Fixes #1198
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 17:22:24 +0000 |
parents | 4eb0a18484cc |
children | 4c3a24270114 |
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c Wed Jun 27 16:13:49 2007 +0000 +++ b/pidgin/gtkimhtml.c Wed Jun 27 17:22:24 2007 +0000 @@ -1002,11 +1002,12 @@ gtk_imhtml_close_tags(imhtml, &iter); gtk_imhtml_insert_html_at_iter(imhtml, text, flags, &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); + if (!imhtml->wbfo && !plaintext) + gtk_imhtml_close_tags(imhtml, &iter); + } static void paste_plaintext_received_cb (GtkClipboard *clipboard, const gchar *text, gpointer data)