diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-22 14:37:39 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-22 14:40:35 +0100 |
commit | 8789e787965dbf574b01be8b514c917085039d77 (patch) | |
tree | 543f5f5c43fa688b39ff91ae5bde6de0df0c9454 | |
parent | be927d9ce665e9715b328ffa546c0427e0b9fb43 (diff) | |
download | gtk+-8789e787965dbf574b01be8b514c917085039d77.tar.gz |
a11y: Update the level property for tree expandersebassi/issue-3892
We already have the depth of a tree expander in order to compute the
indentation.
Fixes: #3892
-rw-r--r-- | gtk/gtktreeexpander.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktreeexpander.c b/gtk/gtktreeexpander.c index 4ebc072236..19b577d826 100644 --- a/gtk/gtktreeexpander.c +++ b/gtk/gtktreeexpander.c @@ -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); |