aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-subset.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-22 14:03:03 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-22 14:03:03 +0800
commit4273e3adbe22aa8dbb34b9eaeeb206811d497646 (patch)
tree4c74a102e3848b7c6c0015c0a551574aefb2f213 /widgets/table/e-table-subset.c
parente4e6331ee588f6b72c9f98840f09d2eb41e23cb3 (diff)
downloadgsoc2013-evolution-4273e3adbe22aa8dbb34b9eaeeb206811d497646.tar.gz
gsoc2013-evolution-4273e3adbe22aa8dbb34b9eaeeb206811d497646.tar.zst
gsoc2013-evolution-4273e3adbe22aa8dbb34b9eaeeb206811d497646.zip
Made it so that it doesn't recalculate all the rows if a row is changed,
2000-10-22 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Made it so that it doesn't recalculate all the rows if a row is changed, inserted or deleted. * e-table-subset.c: Added debugging code (turned off). svn path=/trunk/; revision=6102
Diffstat (limited to 'widgets/table/e-table-subset.c')
-rw-r--r--widgets/table/e-table-subset.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/table/e-table-subset.c b/widgets/table/e-table-subset.c
index 5b9a014afe..1d4f4038bd 100644
--- a/widgets/table/e-table-subset.c
+++ b/widgets/table/e-table-subset.c
@@ -14,6 +14,7 @@
#include "e-table-subset.h"
#define PARENT_TYPE E_TABLE_MODEL_TYPE
+#define d(x)
static ETableModelClass *etss_parent_class;
@@ -66,6 +67,7 @@ etss_value_at (ETableModel *etm, int col, int row)
ETableSubset *etss = (ETableSubset *)etm;
etss->last_access = row;
+ d(g_print("g) Setting last_access to %d\n", row));
return e_table_model_value_at (etss->source, col, etss->map_table [row]);
}
@@ -75,6 +77,7 @@ etss_set_value_at (ETableModel *etm, int col, int row, const void *val)
ETableSubset *etss = (ETableSubset *)etm;
etss->last_access = row;
+ d(g_print("h) Setting last_access to %d\n", row));
return e_table_model_set_value_at (etss->source, col, etss->map_table [row], val);
}
@@ -187,6 +190,7 @@ etss_proxy_model_row_changed (ETableModel *etm, int row, ETableSubset *etss)
for (i = etss->last_access; i < limit; i++) {
if (map_table [i] == row){
e_table_model_row_changed (E_TABLE_MODEL (etss), i);
+ d(g_print("a) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}
@@ -196,6 +200,7 @@ etss_proxy_model_row_changed (ETableModel *etm, int row, ETableSubset *etss)
for (i = etss->last_access - 1; i >= limit; i--) {
if (map_table [i] == row){
e_table_model_row_changed (E_TABLE_MODEL (etss), i);
+ d(g_print("b) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}
@@ -204,6 +209,7 @@ etss_proxy_model_row_changed (ETableModel *etm, int row, ETableSubset *etss)
for (i = 0; i < n; i++){
if (map_table [i] == row){
e_table_model_row_changed (E_TABLE_MODEL (etss), i);
+ d(g_print("c) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}
@@ -222,6 +228,7 @@ etss_proxy_model_cell_changed (ETableModel *etm, int col, int row, ETableSubset
for (i = etss->last_access; i < limit; i++) {
if (map_table [i] == row){
e_table_model_cell_changed (E_TABLE_MODEL (etss), col, i);
+ d(g_print("d) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}
@@ -231,6 +238,7 @@ etss_proxy_model_cell_changed (ETableModel *etm, int col, int row, ETableSubset
for (i = etss->last_access - 1; i >= limit; i--) {
if (map_table [i] == row){
e_table_model_cell_changed (E_TABLE_MODEL (etss), col, i);
+ d(g_print("e) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}
@@ -239,6 +247,7 @@ etss_proxy_model_cell_changed (ETableModel *etm, int col, int row, ETableSubset
for (i = 0; i < n; i++){
if (map_table [i] == row){
e_table_model_cell_changed (E_TABLE_MODEL (etss), col, i);
+ d(g_print("f) Found %d from %d\n", i, etss->last_access));
etss->last_access = i;
return;
}