Revert "Bug 590959 - Set child_has_focus flag properly"

This reverts commit 6e0af6c252.

The patch seems to break focus handling in some applications, like
Epiphany.
This commit is contained in:
Xan Lopez
2009-08-07 15:39:49 +03:00
parent 8296bf7035
commit dfe0c8c0ca

View File

@ -3094,6 +3094,8 @@ static gint
gtk_notebook_focus_in (GtkWidget *widget,
GdkEventFocus *event)
{
GTK_NOTEBOOK (widget)->child_has_focus = FALSE;
gtk_notebook_redraw_tabs (GTK_NOTEBOOK (widget));
return FALSE;
@ -3976,8 +3978,6 @@ gtk_notebook_set_focus_child (GtkContainer *container,
}
}
}
else
notebook->child_has_focus = FALSE;
GTK_CONTAINER_CLASS (gtk_notebook_parent_class)->set_focus_child (container, child);
}