flow box: Avoid a critical in keynav

We were not taking into account that gtk_flow_box_get_next_focusable
can return NULL, in all callers. Fix that.
This commit is contained in:
Matthias Clasen 2015-08-26 19:57:15 -04:00
parent 29f5cdda10
commit 692f60ebb0

View File

@ -3459,7 +3459,7 @@ gtk_flow_box_move_cursor (GtkFlowBox *box,
while (!g_sequence_iter_is_end (iter))
{
iter = gtk_flow_box_get_next_focusable (box, iter);
if (g_sequence_iter_is_end (iter))
if (iter == NULL || g_sequence_iter_is_end (iter))
break;
next = g_sequence_get (iter);