mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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:
parent
229ef9d776
commit
cb0d2616ff
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user