Minimize scrolling in gtkut_ctree_node_move_if_on_the_edge().
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 5 Nov 2016 11:18:53 +0000 (12:18 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 5 Nov 2016 11:18:53 +0000 (12:18 +0100)
commitaaa7ab7d3e7388bab55dadb1407f6a80b598b6ea
treeb0187e06d39a4f35f23cee29ab7a0ecef575a8c6
parent2193529a58210cc79a07051e721f624c086d4121
Minimize scrolling in gtkut_ctree_node_move_if_on_the_edge().

Instead of scrolling to get the target row to the middle of
the viewport (offset 0.5), scroll to offsets 0.2 or 0.8 if
the target row is above or below current viewport,
respectively. This makes it consistent with scrolling when
the target row is only partially visible.
src/gtk/gtkcmclist.c
src/gtk/gtkcmclist.h
src/gtk/gtkutils.c