Improve keynav some more

The previous commit made it so that arrow up/down can leave the
list box when the last child is reached. But it did not work for
Page up/down, due to the way the code was written. With this
commit, all up/down key bindings can leave the widget.
This commit is contained in:
Matthias Clasen 2013-01-22 22:14:49 -05:00
parent 98b0a39efe
commit ebcc7ed3bd

View file

@ -1968,7 +1968,7 @@ egg_list_box_real_move_cursor (EggListBox *list_box,
return;
}
if (child == NULL)
if (child == NULL || child == priv->cursor_child)
{
GtkDirectionType direction = count < 0 ? GTK_DIR_UP : GTK_DIR_DOWN;