From b84797a2c6c1a5c7984d03aab80c3a5098193224 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Oct 2015 19:13:35 -0400 Subject: [PATCH] Don't use g_list_next in gtkcontainer.c We generally access ->next directory. --- gtk/gtkcontainer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index af1c741e22..f469659a25 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -3383,7 +3383,7 @@ gtk_container_set_focus_chain (GtkContainer *container, G_CALLBACK (chain_widget_destroyed), container); - tmp_list = g_list_next (tmp_list); + tmp_list = tmp_list->next; } chain = g_list_reverse (chain); @@ -3464,7 +3464,7 @@ gtk_container_unset_focus_chain (GtkContainer *container) chain_widget_destroyed, container); - tmp_list = g_list_next (tmp_list); + tmp_list = tmp_list->next; } g_list_free (chain);