listbox: Make sure page down/up move at least one row

Desktop / GNOME / GTK - Timm Bäder [baedert.org] - 21 April 2016 22:11 UTC

When the current cursor_row is taller than the page_size we get from the GtkAdjustment, the previous code would not actually cause any scrolling, so make sure we just take the row after or before the cursor_row in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=765261

0815b21 listbox: Make sure page down/up move at least one row
gtk/gtklistbox.c | 53 +++++++++++++++++------------------------------------
1 file changed, 17 insertions(+), 36 deletions(-)

Upstream: git.gnome.org


  • Share