From 46e449f1107591720bec206d8df6a55c615f2660 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Mon, 17 Mar 2014 16:08:47 -0700 Subject: Correctly scroll down autojoined channels Fixes #58 --- src/fe-gtk/xtext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index ff28d25d..d6a2cf7f 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -4562,7 +4562,8 @@ gtk_xtext_append_entry (xtext_buffer *buf, textentry * ent, time_t stamp) gtk_xtext_render_page_timeout, buf->xtext); } - } else if (buf->scrollbar_down) + } + if (buf->scrollbar_down) { buf->old_value = buf->num_lines - buf->xtext->adj->page_size; if (buf->old_value < 0) @@ -4857,6 +4858,8 @@ gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render) { buf->window_height = h; buf->pagetop_ent = NULL; + if (buf->scrollbar_down) + xtext->adj->value = xtext->adj->upper; gtk_xtext_adjustment_set (buf, FALSE); } -- cgit 1.4.1