Remove a shortcut in gtk_widget_set_focus_child

Since focus can now be represented by more than one state,
just looking at the focus_child is no longer sufficient - we
may fail to propagate :focus(visible) if we do so. For now,
just remove the shortcut and always do the work.
This commit is contained in:
Matthias Clasen 2017-10-25 18:26:06 -04:00
parent 0d4bd034c6
commit 46d4deeb1e

View File

@ -15466,9 +15466,6 @@ gtk_widget_set_focus_child (GtkWidget *widget,
g_return_if_fail (GTK_IS_WIDGET (widget));
if (child == priv->focus_child)
return;
if (child != NULL)
{
g_return_if_fail (GTK_IS_WIDGET (child));