[gtk+] treeview: Tell accessible about focus column changes
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Tell accessible about focus column changes
- Date: Sat, 11 Feb 2012 04:15:45 +0000 (UTC)
commit a4559f1e19d10be801ac6e954d58b34a12ac2d4f
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 11 01:59:19 2012 +0100
treeview: Tell accessible about focus column changes
gtk/a11y/gtktreeviewaccessible.c | 7 +++++++
gtk/a11y/gtktreeviewaccessible.h | 4 ++++
gtk/gtktreeview.c | 9 +++++++++
3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index 4fca7fa..adb3a0b 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -2081,6 +2081,13 @@ _gtk_tree_view_accessible_toggle_visibility (GtkTreeView *treeview,
}
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,
GtkRBNode *node,
diff --git a/gtk/a11y/gtktreeviewaccessible.h b/gtk/a11y/gtktreeviewaccessible.h
index 58c75e8..7f953b4 100644
--- a/gtk/a11y/gtktreeviewaccessible.h
+++ b/gtk/a11y/gtktreeviewaccessible.h
@@ -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,
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 96d9107..decf78b 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]