aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-subset.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-06-13 08:41:47 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-13 08:41:47 +0800
commit9de25e88aa7b0d125739fda6bbbfdb4ebe16f951 (patch)
tree2bd83c1e6a0e5726452abb3adb4c6d9657eb2684 /widgets/e-table/e-table-subset.c
parent40adaa82b3d10b7f3ae1cdb4902db5e40fd0b9eb (diff)
downloadgsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar
gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.gz
gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.bz2
gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.lz
gsoc2013-evolution-9de25e88aa7b0d125739fda6bbbfdb4ebe16f951.tar.xz
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/e-table/e-table-subset.c')
-rw-r--r--widgets/e-table/e-table-subset.c42
1 files changed, 15 insertions, 27 deletions
diff --git a/widgets/e-table/e-table-subset.c b/widgets/e-table/e-table-subset.c
index a0add3b954..d2b1e37a9d 100644
--- a/widgets/e-table/e-table-subset.c
+++ b/widgets/e-table/e-table-subset.c
@@ -115,12 +115,6 @@ etss_value_is_empty (ETableModel *etm, int col, const void *value)
}
static void
-etss_thaw (ETableModel *etm)
-{
- e_table_model_changed (etm);
-}
-
-static void
etss_class_init (GtkObjectClass *klass)
{
ETableModelClass *table_class = (ETableModelClass *) klass;
@@ -138,7 +132,6 @@ etss_class_init (GtkObjectClass *klass)
table_class->free_value = etss_free_value;
table_class->initialize_value = etss_initialize_value;
table_class->value_is_empty = etss_value_is_empty;
- table_class->thaw = etss_thaw;
}
E_MAKE_TYPE(e_table_subset, "ETableSubset", ETableSubset, etss_class_init, NULL, PARENT_TYPE);
@@ -146,23 +139,20 @@ E_MAKE_TYPE(e_table_subset, "ETableSubset", ETableSubset, etss_class_init, NULL,
static void
etss_proxy_model_changed (ETableModel *etm, ETableSubset *etss)
{
- if (!E_TABLE_MODEL(etss)->frozen)
- e_table_model_changed (E_TABLE_MODEL (etss));
+ e_table_model_changed (E_TABLE_MODEL (etss));
}
static void
etss_proxy_model_row_changed (ETableModel *etm, int row, ETableSubset *etss)
{
- if (!E_TABLE_MODEL(etss)->frozen){
- const int n = etss->n_map;
- const int * const map_table = etss->map_table;
- int i;
+ const int n = etss->n_map;
+ const int * const map_table = etss->map_table;
+ int i;
- for (i = 0; i < n; i++){
- if (map_table [i] == row){
- e_table_model_row_changed (E_TABLE_MODEL (etss), i);
- return;
- }
+ for (i = 0; i < n; i++){
+ if (map_table [i] == row){
+ e_table_model_row_changed (E_TABLE_MODEL (etss), i);
+ return;
}
}
}
@@ -170,16 +160,14 @@ etss_proxy_model_row_changed (ETableModel *etm, int row, ETableSubset *etss)
static void
etss_proxy_model_cell_changed (ETableModel *etm, int col, int row, ETableSubset *etss)
{
- if (!E_TABLE_MODEL(etss)->frozen){
- const int n = etss->n_map;
- const int * const map_table = etss->map_table;
- int i;
+ const int n = etss->n_map;
+ const int * const map_table = etss->map_table;
+ int i;
- for (i = 0; i < n; i++){
- if (map_table [i] == row){
- e_table_model_cell_changed (E_TABLE_MODEL (etss), col, i);
- return;
- }
+ for (i = 0; i < n; i++){
+ if (map_table [i] == row){
+ e_table_model_cell_changed (E_TABLE_MODEL (etss), col, i);
+ return;
}
}
}