listbox: Don't assume that row child == focus widget

With widgets supporting child widgets and custom GtkListBoxRow
subclasses, this might not be true.
This commit is contained in:
Timm Bäder 2018-01-16 15:12:24 +01:00
parent 229ef9d776
commit cb0d2616ff

View File

@ -3007,7 +3007,7 @@ gtk_list_box_row_focus (GtkWidget *widget,
else if (gtk_widget_get_focus_child (widget) != NULL) else if (gtk_widget_get_focus_child (widget) != NULL)
{ {
/* Child has focus, always navigate inside it first */ /* 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; return TRUE;
/* If exiting child container to the left, select row */ /* If exiting child container to the left, select row */