forked from AuroraMiddleware/gtk
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:
parent
be927d9ce6
commit
8789e78796
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user