widget: Fix gtk_widget_focus_all for !focusable

This was a case that wasn't handle properly when
the focus is entering from the outside, in forward
direction.
This commit is contained in:
Matthias Clasen 2020-05-10 23:42:02 -04:00
parent edc31a264c
commit 46bad5d513

View File

@ -4982,9 +4982,16 @@ gtk_widget_focus_all (GtkWidget *widget,
{
if (gtk_widget_focus_move (widget, direction))
return TRUE;
}
return gtk_widget_grab_focus (widget);
return gtk_widget_grab_focus (widget);
}
else
{
if (gtk_widget_grab_focus (widget))
return TRUE;
return gtk_widget_focus_move (widget, direction);
}
}
gboolean