a11y: Emit active-descendants-changed when focus changes

This fixes the a11y/tree-relationships testcase.

The emission was lost in refactoring in commit
76670734f4
This commit is contained in:
Benjamin Otte
2013-03-05 11:55:28 +01:00
parent 147043ee21
commit 173317e9ce

View File

@ -1926,6 +1926,14 @@ _gtk_tree_view_accessible_add_state (GtkTreeView *treeview,
if (cell != NULL)
_gtk_cell_accessible_state_changed (cell, state, 0);
if (state == GTK_CELL_RENDERER_FOCUSED)
{
if (cell == NULL)
cell = create_cell (treeview, accessible, tree, node, single_column);
g_signal_emit_by_name (accessible, "active-descendant-changed", cell);
}
}
else
{