aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-one.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-02 18:44:28 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-02 18:44:28 +0800
commit2e8ac028ee909ed15ad69fe7836340d5eb556e1e (patch)
treea083baf7036ee78142cda0e604c032db969a8430 /widgets/table/e-table-one.c
parentc03a0bf83596176d50d349c41458284ab69d0d18 (diff)
downloadgsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar.gz
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar.bz2
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar.lz
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar.xz
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.tar.zst
gsoc2013-evolution-2e8ac028ee909ed15ad69fe7836340d5eb556e1e.zip
Changed the API for the append_row function. Now accepts a model to copy
2000-08-02 Christopher James Lahey <clahey@helixcode.com> * e-table-model.c, e-table-model.h: Changed the API for the append_row function. Now accepts a model to copy data from instead of returning a row number and leaving it up to ETableOne to copy the data in. * e-table-one.c, e-table-one.h: Adapted to use new append_row API. * e-table-simple.c, e-table-simple.h, e-table-subset.c: Adapted to supply new append_row API. svn path=/trunk/; revision=4468
Diffstat (limited to 'widgets/table/e-table-one.c')
-rw-r--r--widgets/table/e-table-one.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/widgets/table/e-table-one.c b/widgets/table/e-table-one.c
index 73022a5801..40c24517f8 100644
--- a/widgets/table/e-table-one.c
+++ b/widgets/table/e-table-one.c
@@ -216,7 +216,7 @@ e_table_one_new (ETableModel *source)
return (ETableModel *) eto;
}
-gint
+void
e_table_one_commit (ETableOne *one)
{
if (one->source) {
@@ -229,16 +229,8 @@ e_table_one_commit (ETableOne *one)
break;
}
}
-
if (!empty) {
- int row = e_table_model_append_row(one->source);
- if (row != -1) {
- for (col = 0; col < cols; col++) {
- e_table_model_set_value_at(one->source, col, row, one->data[col]);
- }
- }
- return row;
+ e_table_model_append_row(one->source, E_TABLE_MODEL(one), 0);
}
}
- return -1;
}