aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-model.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-10-03 02:02:53 +0800
committerChris Toshok <toshok@src.gnome.org>2000-10-03 02:02:53 +0800
commit1c2eec1fd409b7ec7a6742684c678bcd258aec53 (patch)
treef26b1011ae9ddb9133ba7b07b58e6806f86f05a8 /widgets/table/e-tree-model.c
parent30b11ae4f9cfd2f33044d64894292593d2aa5e45 (diff)
downloadgsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar.gz
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar.bz2
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar.lz
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar.xz
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.tar.zst
gsoc2013-evolution-1c2eec1fd409b7ec7a6742684c678bcd258aec53.zip
reinstate file.
2000-10-02 Chris Toshok <toshok@helixcode.com> * tree-expanded.xpm: reinstate file. * tree-unexpanded.xpm: same. * e-tree-example-1.c (main): remove calls to e_cursor_*, and don't create pixbufs. let's the tree give us the defaults. * e-tree-model.c (e_tree_model_node_changed): call e_table_model_row_changed on the node's row (if it's visible). (e_tree_model_node_inserted): call e_table_model_row_inserted on the new node's row, if it's visible. (e_tree_model_node_removed): call e_table_model_row_removed on the old node's row, if it was visible. * e-cell-tree.c (e_cell_tree_construct): allow open_pixbuf and closed_pixbuf to be NULL, and default them to the xpm data in rtee-{un}expanded.xpm. (ect_destroy): call gdk_pixbuf_unref on our open/closed pixbufs. * tree-expanded.xpm, tree-unexpanded.xpm: make the + and - a little lighter than straight black. svn path=/trunk/; revision=5660
Diffstat (limited to 'widgets/table/e-tree-model.c')
-rw-r--r--widgets/table/e-tree-model.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c
index baf8d40416..c3f727e825 100644
--- a/widgets/table/e-tree-model.c
+++ b/widgets/table/e-tree-model.c
@@ -438,9 +438,14 @@ E_MAKE_TYPE(e_tree_model, "ETreeModel", ETreeModel, e_tree_model_class_init, NUL
void
e_tree_model_node_changed (ETreeModel *tree_model, ETreePath *node)
{
+ int row;
g_return_if_fail (tree_model != NULL);
g_return_if_fail (E_IS_TREE_MODEL (tree_model));
+ row = e_tree_model_row_of_node (tree_model, node);
+ if (row != -1)
+ e_table_model_row_changed (E_TABLE_MODEL (tree_model), row);
+
gtk_signal_emit (GTK_OBJECT (tree_model),
e_tree_model_signals [NODE_CHANGED]);
}
@@ -450,8 +455,13 @@ e_tree_model_node_inserted (ETreeModel *tree_model,
ETreePath *parent_node,
ETreePath *inserted_node)
{
+ int row;
g_return_if_fail (tree_model != NULL);
g_return_if_fail (E_IS_TREE_MODEL (tree_model));
+
+ row = e_tree_model_row_of_node (tree_model, inserted_node);
+ if (row != -1)
+ e_table_model_row_inserted (E_TABLE_MODEL (tree_model), row);
gtk_signal_emit (GTK_OBJECT (tree_model),
e_tree_model_signals [NODE_INSERTED],
@@ -461,8 +471,14 @@ e_tree_model_node_inserted (ETreeModel *tree_model,
void
e_tree_model_node_removed (ETreeModel *tree_model, ETreePath *parent_node, ETreePath *removed_node)
{
+ int row;
+
g_return_if_fail (tree_model != NULL);
g_return_if_fail (E_IS_TREE_MODEL (tree_model));
+
+ row = e_tree_model_row_of_node (tree_model, removed_node);
+ if (row != -1)
+ e_table_model_row_inserted (E_TABLE_MODEL (tree_model), row);
gtk_signal_emit (GTK_OBJECT (tree_model),
e_tree_model_signals [NODE_REMOVED],