Mercurial > pidgin
changeset 6824:9ae5ce753d63
[gaim-migrate @ 7368]
History plugin fixes from javabsp
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 13 Sep 2003 21:01:05 +0000 |
parents | 2a6f5eb2d561 |
children | 936133f7c755 |
files | plugins/history.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/history.c Sat Sep 13 09:33:06 2003 +0000 +++ b/plugins/history.c Sat Sep 13 21:01:05 2003 +0000 @@ -30,6 +30,7 @@ char *tmp, *tmp2; int size; GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; + GtkTextIter end; if (stat(path, &st) || S_ISDIR(st.st_mode) || st.st_size == 0 || !(fd = fopen(path, "r"))) { @@ -61,6 +62,13 @@ gtkconv = GAIM_GTK_CONVERSATION(c); gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), tmp2, strlen(tmp2), options); + gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "<br>", -1, options); + gtk_text_buffer_get_end_iter(GTK_IMHTML(gtkconv->imhtml)->text_buffer, & +end); + gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(gtkconv->imhtml), &end, 0, 0, + 0, 0); + gtk_text_buffer_move_mark_by_name(GTK_IMHTML(gtkconv->imhtml)->text_buffer, + "insert", &end); g_free(tmp2); g_free(userdir);