[gtk+] a11y: Set new treeview flags



commit bb029420fd3a6036450751199babc5261ed612f2
Author: Benjamin Otte <otte redhat com>
Date:   Sun Dec 11 02:57:36 2011 +0100

    a11y: Set new treeview flags

 gtk/a11y/gtktreeviewaccessible.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index 4079541..d0e2eb1 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -1540,6 +1540,16 @@ gtk_tree_view_accessible_get_renderer_state (GtkCellAccessibleParent *parent,
     flags |= GTK_CELL_RENDERER_SORTED;
 
   treeview = GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (parent)));
+
+  if (cell_info->cell_col_ref == gtk_tree_view_get_expander_column (treeview))
+    {
+      if (GTK_RBNODE_FLAG_SET (cell_info->node, GTK_RBNODE_IS_PARENT))
+        flags |= GTK_CELL_RENDERER_EXPANDABLE;
+
+      if (cell_info->node->children)
+        flags |= GTK_CELL_RENDERER_EXPANDED;
+    }
+
   if (gtk_widget_has_focus (GTK_WIDGET (treeview)))
     {
       GtkTreeViewColumn *column;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]