diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-04 19:38:14 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-04 19:38:14 +0000 |
commit | 1dde54b872a891fa992f356f546127914be66220 (patch) | |
tree | f01294f27e0fb4c3b05bcc2b77da7e29b998b2d0 /gtk/gtktreeexpander.c | |
parent | c48a9907786294b9221b1365fce06e16ab6c47dc (diff) | |
download | gtk+-1dde54b872a891fa992f356f546127914be66220.tar.gz |
a11y: Hide the "indent" in GtkTreeExpander
It's just padding.
Diffstat (limited to 'gtk/gtktreeexpander.c')
-rw-r--r-- | gtk/gtktreeexpander.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk/gtktreeexpander.c b/gtk/gtktreeexpander.c index 14992685f7..9ff4e6ac35 100644 --- a/gtk/gtktreeexpander.c +++ b/gtk/gtktreeexpander.c @@ -21,6 +21,7 @@ #include "gtktreeexpander.h" +#include "gtkaccessible.h" #include "gtkboxlayout.h" #include "gtkbuiltiniconprivate.h" #include "gtkdropcontrollermotion.h" @@ -199,7 +200,16 @@ gtk_tree_expander_update_for_list_row (GtkTreeExpander *self) if (child) child = gtk_widget_get_prev_sibling (child); else - gtk_widget_insert_after (gtk_builtin_icon_new ("indent"), GTK_WIDGET (self), NULL); + { + GtkWidget *indent = gtk_builtin_icon_new ("indent"); + + gtk_widget_insert_after (indent, GTK_WIDGET (self), NULL); + + /* The indent icon is not visible in the accessibility tree */ + gtk_accessible_update_state (GTK_ACCESSIBLE (indent), + GTK_ACCESSIBLE_STATE_HIDDEN, TRUE, + -1); + } } while (child) |