mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
notbook: Fix a bug in focus handling
After the header widget was introduced, focus would get stuck in a loop between actions and tabs. This could be seen in the notebook on page 3 of widget-factory.
This commit is contained in:
parent
9ce58bdb0c
commit
b86c1446a4
@ -3558,6 +3558,8 @@ gtk_notebook_focus (GtkWidget *widget,
|
||||
|
||||
widget_is_focus = gtk_widget_is_focus (widget);
|
||||
old_focus_child = gtk_widget_get_focus_child (widget);
|
||||
if (old_focus_child)
|
||||
old_focus_child = gtk_widget_get_focus_child (old_focus_child);
|
||||
|
||||
effective_direction = get_effective_direction (notebook, direction);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user