Merge branch 'wip/chergert/fix-a11y-critical' into 'master'

a11y: return -1 if parent is NULL

See merge request GNOME/gtk!4179
This commit is contained in:
Samuel Thibault 2021-11-20 08:14:35 +00:00
commit b8e009eb05

View File

@ -334,6 +334,9 @@ get_index_in_parent (GtkWidget *widget)
GtkWidget *child;
int idx;
if (parent == NULL)
return -1;
idx = 0;
for (child = gtk_widget_get_first_child (parent);
child;