[gtk+] treeview: Remove unnecessary accessible_expanded()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Remove unnecessary accessible_expanded()
- Date: Fri, 16 Dec 2011 03:58:03 +0000 (UTC)
commit 0005d820c74a049868136c069df8173f2860be9b
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 12 16:03:56 2011 +0100
treeview: Remove unnecessary accessible_expanded()
Instead, just call remove_state().
gtk/a11y/gtktreeviewaccessible.c | 17 -----------------
gtk/a11y/gtktreeviewaccessible.h | 3 ---
gtk/gtktreeview.c | 4 +++-
3 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index b481295..6fba88f 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -2709,20 +2709,3 @@ _gtk_tree_view_accessible_remove_state (GtkTreeView *treeview,
_gtk_cell_accessible_state_changed (cell, 0, state);
}
}
-
-void
-_gtk_tree_view_accessible_expanded (GtkTreeView *treeview,
- GtkRBTree *tree,
- GtkRBNode *node)
-{
- AtkObject *obj;
-
- obj = _gtk_widget_peek_accessible (GTK_WIDGET (treeview));
- if (obj == NULL)
- return;
-
- _gtk_tree_view_accessible_add_state (treeview,
- tree, node,
- GTK_CELL_RENDERER_EXPANDED);
-}
-
diff --git a/gtk/a11y/gtktreeviewaccessible.h b/gtk/a11y/gtktreeviewaccessible.h
index aa23536..5a23f83 100644
--- a/gtk/a11y/gtktreeviewaccessible.h
+++ b/gtk/a11y/gtktreeviewaccessible.h
@@ -81,9 +81,6 @@ void _gtk_tree_view_accessible_remove_state (GtkTreeView *tree
GtkRBNode *node,
GtkCellRendererState state);
-void _gtk_tree_view_accessible_expanded (GtkTreeView *treeview,
- GtkRBTree *tree,
- GtkRBNode *node);
G_END_DECLS
#endif /* __GTK_TREE_VIEW_ACCESSIBLE_H__ */
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 22cc8b8..665335a 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -12762,7 +12762,9 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view,
open_all);
_gtk_tree_view_accessible_add (tree_view, node->children, NULL);
- _gtk_tree_view_accessible_expanded (tree_view, tree, node);
+ _gtk_tree_view_accessible_add_state (tree_view,
+ tree, node,
+ GTK_CELL_RENDERER_EXPANDED);
if (animate)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]