# HG changeset patch # User Christian Hammond # Date 1063486865 0 # Node ID 9ae5ce753d633cc34c7cdd670095a0fc3e93517e # Parent 2a6f5eb2d561f7adf36729b001f8cfcd0843bb05 [gaim-migrate @ 7368] History plugin fixes from javabsp committer: Tailor Script diff -r 2a6f5eb2d561 -r 9ae5ce753d63 plugins/history.c --- 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), "
", -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);