aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-07-13 18:31:22 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-07-13 18:31:22 +0800
commit201b027d54d5738ddb43cb65fbf639e968a99350 (patch)
treed7429a3c232c955b9d9feadf5341bdcdcf94d287 /widgets/table
parentd035c5539b47f23fc9d43c78a7f96f098ab197fb (diff)
downloadgsoc2013-evolution-201b027d54d5738ddb43cb65fbf639e968a99350.tar.gz
gsoc2013-evolution-201b027d54d5738ddb43cb65fbf639e968a99350.tar.zst
gsoc2013-evolution-201b027d54d5738ddb43cb65fbf639e968a99350.zip
added e_table_model_pre_change because we call e_table_model_row_inserted
2004-07-07 Radek Doulik <rodo@ximian.com> * e-table-sorted-variable.c (etsv_add): added e_table_model_pre_change because we call e_table_model_row_inserted later. It fixes freeze/unfreeze for ETableItem assert warning which I run into when fixing #56271 svn path=/trunk/; revision=26632
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-sorted-variable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index 1e271f997f..ac3a7d5067 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -128,6 +128,8 @@ etsv_add (ETableSubsetVariable *etssv,
ETableSortedVariable *etsv = E_TABLE_SORTED_VARIABLE (etssv);
int i;
+ e_table_model_pre_change (etm);
+
if (etss->n_map + 1 > etssv->n_vals_allocated) {
etssv->n_vals_allocated += INCREMENT_AMOUNT;
etss->map_table = g_realloc (etss->map_table, (etssv->n_vals_allocated) * sizeof(int));