mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
Exclude non-drawable widgets from focus
This was showing up as confusion between palette and editor in the color chooser.
This commit is contained in:
parent
8c1d852a84
commit
94b0e99be5
@ -422,7 +422,9 @@ gtk_widget_focus_sort (GtkWidget *widget,
|
||||
child != NULL;
|
||||
child = _gtk_widget_get_next_sibling (child))
|
||||
{
|
||||
if (_gtk_widget_get_realized (child))
|
||||
if (_gtk_widget_get_realized (child) &&
|
||||
_gtk_widget_is_drawable (child) &&
|
||||
gtk_widget_get_sensitive (child))
|
||||
g_ptr_array_add (focus_order, child);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user