Correctly scroll down autojoined channels

Fixes #58
This commit is contained in:
RichardHitt 2014-03-17 16:08:47 -07:00 committed by TingPing
parent 0487daf865
commit 46e449f110
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}