aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-table-adapter.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-13 04:44:02 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-13 04:44:02 +0800
commit4da3e76c2cb4e89850166ae5fa0bf2e4db837733 (patch)
tree1eecb0e9c1c701eb95e180fa14129ed5bc418583 /widgets/table/e-tree-table-adapter.c
parent160eb8c6e95b1bd15558f6c7d15a4b671dacb104 (diff)
downloadgsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar.gz
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar.bz2
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar.lz
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar.xz
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.tar.zst
gsoc2013-evolution-4da3e76c2cb4e89850166ae5fa0bf2e4db837733.zip
Ignore set_expanded if the node is the root and root_visible is FALSE.
2001-07-12 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded): Ignore set_expanded if the node is the root and root_visible is FALSE. * e-tree.c (item_key_press): Don't call set_expanded on NULL paths. svn path=/trunk/; revision=11061
Diffstat (limited to 'widgets/table/e-tree-table-adapter.c')
-rw-r--r--widgets/table/e-tree-table-adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c
index f02494c4e1..99c312c805 100644
--- a/widgets/table/e-tree-table-adapter.c
+++ b/widgets/table/e-tree-table-adapter.c
@@ -928,6 +928,9 @@ void e_tree_table_adapter_node_set_expanded (ETreeTableAdapter *etta, ET
ETreeTableAdapterNode *node;
int row;
+ if (e_tree_model_node_is_root (etta->priv->source, path) && !etta->priv->root_visible)
+ return;
+
node = find_or_create_node(etta, path);
row = find_row_num(etta, path);