treeview: Tell accessible about focus column changes

This commit is contained in:
Benjamin Otte 2012-02-11 01:59:19 +01:00
parent f33fe5b677
commit a4559f1e19
3 changed files with 20 additions and 0 deletions

View File

@ -2080,6 +2080,13 @@ _gtk_tree_view_accessible_toggle_visibility (GtkTreeView *treeview,
id);
}
void
_gtk_tree_view_accessible_update_focus_column (GtkTreeView *treeview,
GtkTreeViewColumn *old_focus,
GtkTreeViewColumn *new_focus)
{
}
void
_gtk_tree_view_accessible_add_state (GtkTreeView *treeview,
GtkRBTree *tree,

View File

@ -74,6 +74,10 @@ void _gtk_tree_view_accessible_reorder_column(GtkTreeView *tree
void _gtk_tree_view_accessible_toggle_visibility
(GtkTreeView *treeview,
GtkTreeViewColumn *column);
void _gtk_tree_view_accessible_update_focus_column
(GtkTreeView *treeview,
GtkTreeViewColumn *old_focus,
GtkTreeViewColumn *new_focus);
void _gtk_tree_view_accessible_add_state (GtkTreeView *treeview,
GtkRBTree *tree,

View File

@ -10019,7 +10019,16 @@ void
_gtk_tree_view_set_focus_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column)
{
GtkTreeViewColumn *old_column = tree_view->priv->focus_column;
if (old_column == column)
return;
tree_view->priv->focus_column = column;
_gtk_tree_view_accessible_update_focus_column (tree_view,
old_column,
column);
}