diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-06-13 08:41:47 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-06-13 08:41:47 +0800 |
commit | 9de25e88aa7b0d125739fda6bbbfdb4ebe16f951 (patch) | |
tree | 2bd83c1e6a0e5726452abb3adb4c6d9657eb2684 /widgets/table/e-table-subset-variable.c | |
parent | 40adaa82b3d10b7f3ae1cdb4902db5e40fd0b9eb (diff) | |
download | gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.gz gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.zst gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.zip |
Removed the freeze/thaw stuff for the model. As Chris wisely pointed out,
2000-06-12 Federico Mena Quintero <federico@helixcode.com>
* e-table-model.[ch]: Removed the freeze/thaw stuff for the model.
As Chris wisely pointed out, having freeze/thaw on the model makes
its state inconsistent from the perspective of the views.
* e-table-sorted-variable.c: Do not check for a frozen model.
* e-table-subset.c: Likewise.
* e-table-subset-variable.c: Likewise.
* e-table-example-1.c: Removed the ETableModel thaw handler.
* e-table-example-2.c: Likewise.
* e-table-simple.c: Likewise.
* e-table-size-test.c: Likewise.
* test-check.c: Likewise.
* test-cols.c: Likewise.
* test-table.c: Likewise.
svn path=/trunk/; revision=3543
Diffstat (limited to 'widgets/table/e-table-subset-variable.c')
-rw-r--r-- | widgets/table/e-table-subset-variable.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c index a8948c5e68..377b21c9ae 100644 --- a/widgets/table/e-table-subset-variable.c +++ b/widgets/table/e-table-subset-variable.c @@ -39,8 +39,8 @@ etssv_add (ETableSubsetVariable *etssv, if (etss->map_table[i] >= row) etss->map_table[i] ++; etss->map_table[etss->n_map++] = row; - if (!etm->frozen) - e_table_model_row_inserted (etm, etss->n_map - 1); + + e_table_model_row_inserted (etm, etss->n_map - 1); } static void @@ -57,8 +57,8 @@ etssv_add_all (ETableSubsetVariable *etssv) } for (i = 0; i < rows; i++) etss->map_table[etss->n_map++] = i; - if (!etm->frozen) - e_table_model_changed (etm); + + e_table_model_changed (etm); } static gboolean @@ -74,8 +74,8 @@ etssv_remove (ETableSubsetVariable *etssv, if (etss->map_table[i] == row) { memmove (etss->map_table + i, etss->map_table + i + 1, (etss->n_map - i - 1) * sizeof(int)); etss->n_map --; - if (!etm->frozen) - e_table_model_changed (etm); + + e_table_model_changed (etm); ret_val = TRUE; break; } |