Ahem.
This is in preparation for future changes and is not meant to stay this
way. But I want to change the hash table's keys and this is way easier
when nobody is using them.
gint index)
{
GtkTreeViewAccessibleCellInfo *info;
+ GHashTableIter iter;
+ GtkTreeView *tree_view;
- info = g_hash_table_lookup (accessible->cell_info_by_index, &index);
- if (!info)
- return NULL;
+ tree_view = GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible)));
- return info->cell;
+ g_hash_table_iter_init (&iter, accessible->cell_info_by_index);
+ while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &info))
+ {
+ if (index == cell_info_get_index (tree_view, info))
+ return info->cell;
+ }
+
+ return NULL;
}
static void