a11y: Update the level property for tree expanders

We already have the depth of a tree expander in order to compute the
indentation.

Fixes: #3892
This commit is contained in:
Emmanuele Bassi 2021-04-22 14:37:39 +01:00
parent be927d9ce6
commit 8789e78796

View File

@ -239,6 +239,11 @@ gtk_tree_expander_update_for_list_row (GtkTreeExpander *self)
}
}
/* The level property is >= 1 */
gtk_accessible_update_property (GTK_ACCESSIBLE (self),
GTK_ACCESSIBLE_PROPERTY_LEVEL, depth + 1,
-1);
while (child)
{
GtkWidget *prev = gtk_widget_get_prev_sibling (child);