From cb0d2616ff78b4618334edba61d6d97dda767d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 16 Jan 2018 15:12:24 +0100 Subject: [PATCH] listbox: Don't assume that row child == focus widget With widgets supporting child widgets and custom GtkListBoxRow subclasses, this might not be true. --- gtk/gtklistbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index f710bf1251..32135f3214 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -3007,7 +3007,7 @@ gtk_list_box_row_focus (GtkWidget *widget, else if (gtk_widget_get_focus_child (widget) != NULL) { /* Child has focus, always navigate inside it first */ - if (gtk_widget_child_focus (child, direction)) + if (gtk_widget_child_focus (gtk_widget_get_focus_child (widget), direction)) return TRUE; /* If exiting child container to the left, select row */