[gtk+] a11y: Remove clean_rows function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Remove clean_rows function
- Date: Wed, 16 Nov 2011 03:42:55 +0000 (UTC)
commit 5af4ce6a6664abf10f84e15286a7db252ea87e68
Author: Benjamin Otte <otte redhat com>
Date: Sun Nov 13 02:52:04 2011 +0100
a11y: Remove clean_rows function
It doesn't do anything anymore.
gtk/a11y/gtktreeviewaccessible.c | 34 ----------------------------------
1 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index 794233b..f34a9e7 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -92,7 +92,6 @@ static void iterate_thru_children (GtkTreeView
gint depth);
static int cell_info_get_index (GtkTreeView *tree_view,
GtkTreeViewAccessibleCellInfo *info);
-static void clean_rows (GtkTreeViewAccessible *tree_view);
static void clean_cols (GtkTreeViewAccessible *tree_view,
GtkTreeViewColumn *tv_col);
static void traverse_cells (GtkTreeViewAccessible *tree_view,
@@ -1684,8 +1683,6 @@ row_collapsed_cb (GtkTreeView *tree_view,
accessible = GTK_TREE_VIEW_ACCESSIBLE (atk_obj);
tree_model = gtk_tree_view_get_model (tree_view);
- clean_rows (accessible);
-
/* Update visibility of cells below collapsed row */
traverse_cells (accessible, path, FALSE);
@@ -1738,8 +1735,6 @@ selection_changed_cb (GtkTreeSelection *selection,
tree_view = GTK_TREE_VIEW (widget);
tree_selection = gtk_tree_view_get_selection (tree_view);
- clean_rows (accessible);
-
/* FIXME: clean rows iterates through all cells too */
g_hash_table_iter_init (&iter, accessible->cell_infos);
while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&info))
@@ -2156,9 +2151,6 @@ model_row_deleted (GtkTreeModel *tree_model,
accessible->idle_expand_id = 0;
}
- /* Check to see if row is visible */
- clean_rows (accessible);
-
traverse_cells (accessible, path, TRUE);
/* If deleting a row with a depth > 1, then this may affect the
@@ -2689,32 +2681,6 @@ iterate_thru_children (GtkTreeView *tree_view,
}
static void
-clean_rows (GtkTreeViewAccessible *accessible)
-{
- GtkTreeViewAccessibleCellInfo *cell_info;
- GHashTableIter iter;
-
- /* Clean GtkTreeViewAccessibleCellInfo data */
- g_hash_table_iter_init (&iter, accessible->cell_infos);
- while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&cell_info))
- {
- GtkTreePath *row_path;
-
- row_path = cell_info_get_path (cell_info);
-
- /* If the cell has become invalid because the row has been removed,
- * then set the cell's state to ATK_STATE_DEFUNCT and schedule
- * its removal. If row_path is NULL then the row has
- * been removed.
- */
- if (row_path == NULL)
- g_hash_table_iter_remove (&iter);
- else
- gtk_tree_path_free (row_path);
- }
-}
-
-static void
clean_cols (GtkTreeViewAccessible *accessible,
GtkTreeViewColumn *tv_col)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]