summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2014-03-17 16:08:47 -0700
committerTingPing <tingping@tingping.se>2014-03-19 10:31:52 -0400
commit46e449f1107591720bec206d8df6a55c615f2660 (patch)
treeae7d3214561e50659b374ca623c8bf389cf61530 /src/fe-gtk
parent0487daf8655c8a353d2804fad7ffc7c5cf22f0a2 (diff)
Correctly scroll down autojoined channels
Fixes #58
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/xtext.c5
1 files changed, 4 insertions, 1 deletions
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);
 		}