aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-20 07:32:50 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-20 07:32:50 +0800
commit862d1f25dea4fde774aca9b8e849f22b2e0b9d93 (patch)
treeed6266c92fbee21440085d1a71e258f2cbb18fb9 /widgets/e-table/e-table.c
parent668e92af992e05e58c714d71943a66a60eb49965 (diff)
downloadgsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar.gz
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar.bz2
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar.lz
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar.xz
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.tar.zst
gsoc2013-evolution-862d1f25dea4fde774aca9b8e849f22b2e0b9d93.zip
Made background colors alternate.
2000-08-19 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Made background colors alternate. * e-table-click-to-add.c: Made tabbing off the right edge of the click to add commit the new values. * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Added a decrement method. Made the add and remove methods not automatically increment and decrement. * e-table-item.c: Fixed some view vs model issues for both rows and columns. * e-table-model.c: Added debugging code. Removed automatic signalling of changes by the ETableModel set_value_at function (the model should send these signals itself.) * e-table.c: Added increment and decrement calls when a row is removed or added from the source model. svn path=/trunk/; revision=4881
Diffstat (limited to 'widgets/e-table/e-table.c')
-rw-r--r--widgets/e-table/e-table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c
index ca26678607..e2f7edec5e 100644
--- a/widgets/e-table/e-table.c
+++ b/widgets/e-table/e-table.c
@@ -394,7 +394,10 @@ et_table_cell_changed (ETableModel *table_model, int view_col, int row, ETable *
static void
et_table_row_inserted (ETableModel *table_model, int row, ETable *et)
{
+ int row_count = e_table_model_row_count(table_model);
if (!et->need_rebuild) {
+ if (row != row_count - 1)
+ e_table_group_increment(et->group, row, 1);
e_table_group_add (et->group, row);
}
}
@@ -402,8 +405,11 @@ et_table_row_inserted (ETableModel *table_model, int row, ETable *et)
static void
et_table_row_deleted (ETableModel *table_model, int row, ETable *et)
{
+ int row_count = e_table_model_row_count(table_model);
if (!et->need_rebuild) {
e_table_group_remove (et->group, row);
+ if (row != row_count - 1)
+ e_table_group_decrement(et->group, row, 1);
}
}