aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree-sorted.c6
-rw-r--r--widgets/table/e-tree-table-adapter.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c
index 3d70e019e4..ddea067b91 100644
--- a/widgets/table/e-tree-sorted.c
+++ b/widgets/table/e-tree-sorted.c
@@ -124,13 +124,17 @@ ets_insert_idle(ETreeSorted *ets)
/* Helper functions */
+#define CHECK_AROUND_LAST_ACCESS
+
static inline ETreeSortedPath *
check_last_access (ETreeSorted *ets, ETreePath corresponding)
{
+#ifdef CHECK_AROUND_LAST_ACCESS
ETreeSortedPath *parent;
int end;
int start;
int i;
+#endif
if (ets->priv->last_access == NULL)
return NULL;
@@ -140,6 +144,7 @@ check_last_access (ETreeSorted *ets, ETreePath corresponding)
return ets->priv->last_access;
}
+#ifdef CHECK_AROUND_LAST_ACCESS
parent = ets->priv->last_access->parent;
if (parent && parent->children) {
i = ets->priv->last_access->position;
@@ -160,6 +165,7 @@ check_last_access (ETreeSorted *ets, ETreePath corresponding)
}
}
}
+#endif
return NULL;
}
diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c
index 71c73d7724..82bb4186f9 100644
--- a/widgets/table/e-tree-table-adapter.c
+++ b/widgets/table/e-tree-table-adapter.c
@@ -437,8 +437,10 @@ etta_value_at (ETableModel *etm, int col, int row)
{
ETreeTableAdapter *etta = (ETreeTableAdapter *)etm;
+#if 0
etta->priv->last_access = row;
d(g_print("g) Setting last_access to %d\n", row));
+#endif
switch (col) {
case -1: