[gtk+] a11y: Implement GtkContainerCellAccessible.update_cache



commit 4ac501736e03b1bee091caa0c46fc6509e98f611
Author: Benjamin Otte <otte redhat com>
Date:   Fri Dec 16 00:12:15 2011 +0100

    a11y: Implement GtkContainerCellAccessible.update_cache

 gtk/a11y/gtkcontainercellaccessible.c |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkcontainercellaccessible.c b/gtk/a11y/gtkcontainercellaccessible.c
index 6232249..1f37e04 100644
--- a/gtk/a11y/gtkcontainercellaccessible.c
+++ b/gtk/a11y/gtkcontainercellaccessible.c
@@ -60,15 +60,30 @@ gtk_container_cell_accessible_ref_child (AtkObject *obj,
 }
 
 static void
+gtk_container_cell_accessible_update_cache (GtkCellAccessible *cell)
+{
+  GtkContainerCellAccessible *container = GTK_CONTAINER_CELL_ACCESSIBLE (cell);
+  GList *l;
+
+  for (l = container->children; l; l = l->next)
+    {
+      _gtk_cell_accessible_update_cache (l->data);
+    }
+}
+
+static void
 _gtk_container_cell_accessible_class_init (GtkContainerCellAccessibleClass *klass)
 {
-  AtkObjectClass *class = ATK_OBJECT_CLASS(klass);
+  GtkCellAccessibleClass *cell_class = GTK_CELL_ACCESSIBLE_CLASS (klass);
+  AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
   GObjectClass *g_object_class = G_OBJECT_CLASS (klass);
 
   g_object_class->finalize = gtk_container_cell_accessible_finalize;
 
   class->get_n_children = gtk_container_cell_accessible_get_n_children;
   class->ref_child = gtk_container_cell_accessible_ref_child;
+
+  cell_class->update_cache = gtk_container_cell_accessible_update_cache;
 }
 
 static void



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