[evolution-patches] Freeze/Thaw patch for etree
- From: Mike Kestner <mkestner ximian com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Freeze/Thaw patch for etree
- Date: 05 May 2003 15:12:59 -0500
Ettore identified a frozen_count problem with the node_inserted handling
of etree. This patch fixes it, and a similar problem with node_removed
handling.
Mike
Index: gal/e-table/e-tree-table-adapter.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-tree-table-adapter.c,v
retrieving revision 1.53
diff -u -p -r1.53 e-tree-table-adapter.c
--- gal/e-table/e-tree-table-adapter.c 21 Apr 2003 14:18:58 -0000 1.53
+++ gal/e-table/e-tree-table-adapter.c 5 May 2003 20:09:59 -0000
@@ -399,6 +399,7 @@ insert_node(ETreeTableAdapter *etta, ETr
generate_tree(etta, parent);
else
insert_node(etta, grandparent, parent);
+ e_table_model_changed(E_TABLE_MODEL(etta));
return;
}
@@ -782,12 +783,15 @@ etta_proxy_node_inserted (ETreeModel *et
generate_tree(etta, child);
else
insert_node(etta, parent, child);
+
+ e_table_model_changed(E_TABLE_MODEL(etta));
}
static void
etta_proxy_node_removed (ETreeModel *etm, ETreePath parent, ETreePath child, int old_position, ETreeTableAdapter *etta)
{
delete_node(etta, parent, child);
+ e_table_model_changed(E_TABLE_MODEL(etta));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]