a11y: Hide children of GtkFishBowl

The fishbowl widget is purely presentational, and its children should
not be visible in the accessibility tree.
This commit is contained in:
Emmanuele Bassi 2020-11-19 14:47:16 +00:00
parent 5afa985e85
commit a4c3bee4a1

View File

@ -179,6 +179,9 @@ gtk_fishbowl_add (GtkFishbowl *fishbowl,
child_info->dy = new_speed ();
gtk_widget_set_parent (widget, GTK_WIDGET (fishbowl));
gtk_accessible_update_state (GTK_ACCESSIBLE (widget),
GTK_ACCESSIBLE_STATE_HIDDEN, TRUE,
-1);
g_hash_table_insert (priv->children, widget, child_info);
priv->count++;