From 811caaaa3dea9a90c86ce64fa2e74e7eb24714c1 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Mon, 11 Nov 2013 12:55:38 -0800 Subject: Fixes #836. In gtk_xtext_scroll() always force line integral line boundary. --- src/fe-gtk/xtext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 48d4ec61..4a82bc43 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -2147,14 +2147,14 @@ gtk_xtext_scroll (GtkWidget *widget, GdkEventScroll *event) new_value = xtext->adj->value - (xtext->adj->page_increment / 10); if (new_value < xtext->adj->lower) new_value = xtext->adj->lower; - gtk_adjustment_set_value (xtext->adj, new_value); + gtk_adjustment_set_value (xtext->adj, (int)new_value); } else if (event->direction == GDK_SCROLL_DOWN) /* mouse wheel pageDn */ { new_value = xtext->adj->value + (xtext->adj->page_increment / 10); if (new_value > (xtext->adj->upper - xtext->adj->page_size)) new_value = xtext->adj->upper - xtext->adj->page_size; - gtk_adjustment_set_value (xtext->adj, new_value); + gtk_adjustment_set_value (xtext->adj, (int)new_value); } return FALSE; -- cgit 1.4.1