diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-08-26 19:57:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-08-26 20:00:40 -0400 |
commit | 692f60ebb0f33d6b0abe1ffbd0a43d212777fbf2 (patch) | |
tree | 47284589aa53a7f4389ba8a37c1a9b97fa2a18be /gtk/gtkflowbox.c | |
parent | 29f5cdda100ef24b0e8b7415d78a58649988a05c (diff) | |
download | gtk+-692f60ebb0f33d6b0abe1ffbd0a43d212777fbf2.tar.gz |
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.
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r-- | gtk/gtkflowbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index c19130e6af..8b65d65ecf 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -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); |