diff plugins/history.c @ 8729:7024b9145357

[gaim-migrate @ 9484] (16:29:26) marv: The patch adds a gtk_imhtml_scroll_to_bottom, and makes the history plugin use it. gtk_text_view_scroll_to_iter bad, gtk_text_view_scroll_to_mark good committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 20 Apr 2004 20:31:11 +0000
parents 9e122b8f564f
children d7b8eb1f0a18
line wrap: on
line diff
--- a/plugins/history.c	Tue Apr 20 20:28:55 2004 +0000
+++ b/plugins/history.c	Tue Apr 20 20:31:11 2004 +0000
@@ -24,7 +24,6 @@
 	char *history = NULL;
 	guint flags;
 	GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS;
-	GtkTextIter end;
 	GList *logs = gaim_log_get_logs(gaim_conversation_get_name(c),
 			gaim_conversation_get_account(c));
 
@@ -36,10 +35,7 @@
 		options |= GTK_IMHTML_NO_NEWLINE;
 	gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), history, options);
 	gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "<hr>", 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,
-			TRUE, 0, 0);
+	gtk_imhtml_scroll_to_end(GTK_IMHTML(gtkconv->imhtml));
 	g_free(history);
 	while (logs) {
 		GaimLog *log = logs->data;