forked from AuroraMiddleware/gtk
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:
parent
edc31a264c
commit
46bad5d513
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user