a11y: Make the cache lookup function inefficient

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.
This commit is contained in:
Benjamin Otte 2011-11-11 01:40:36 +01:00
parent ac29108586
commit a9dd3e559a

View File

@ -3206,12 +3206,19 @@ find_cell (GtkTreeViewAccessible *accessible,
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