From 4f122d673cbe7cd1e11a951c5dd9f6d5e23431b7 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 21 Feb 2002 19:02:32 +0000 Subject: Added e-table-memory-store.lo. 2002-02-21 Christopher James Lahey * gal/Makefile.am (libgal_la_LIBADD): Added e-table-memory-store.lo. From gal/e-table/ChangeLog: 2002-02-21 Christopher James Lahey * Makefile.am (libetable_la_SOURCES): Added e-table-memory-store.c. (libetableinclude_HEADERS): Added e-table-memory-store.h. * e-table-config-no-group.glade, e-table-config.glade: Updated these. * e-table-config.c, e-table-config.h: Updated this to have a working field list editor. * e-table-memory-store.c, e-table-memory-store.h: New ETableModel that is a complete store of all the data in your table. No callbacks at all. * e-table-subset-variable.c, e-table-subset-variable.h (e_table_subset_variable_clear): Added this simple function * e-table-subset.c (etss_get_save_id): Made this return the row number g_strdup_printfed if the source model doesn't support save ids. 2002-02-20 Christopher James Lahey * e-table-sorter.c, e-table-sorter.h: Connect to the model_rows_inserted, model_rows_deleted, and group_info_changed here. svn path=/trunk/; revision=15783 --- widgets/table/e-table-subset-variable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/table/e-table-subset-variable.c') diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c index a55f162bcf..6d298d6050 100644 --- a/widgets/table/e-table-subset-variable.c +++ b/widgets/table/e-table-subset-variable.c @@ -202,6 +202,21 @@ e_table_subset_variable_remove (ETableSubsetVariable *etssv, return FALSE; } +void +e_table_subset_variable_clear (ETableSubsetVariable *etssv) +{ + ETableModel *etm = E_TABLE_MODEL(etssv); + ETableSubset *etss = E_TABLE_SUBSET(etssv); + + e_table_model_pre_change (etm); + etss->n_map = 0; + g_free (etss->map_table); + etss->map_table = g_new (unsigned int, 1); + etssv->n_vals_allocated = 1; + + e_table_model_changed (etm); +} + void e_table_subset_variable_increment (ETableSubsetVariable *etssv, gint position, -- cgit v1.2.3