From 5fbcc4828efb084344e9c5fd42ebccb288ee492f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 2 Aug 2000 16:56:26 +0000 Subject: Add a handler for "model_pre_change" and properly stop editing. 2000-08-02 Christopher James Lahey * e-table-item.c, e-table-item.h: Add a handler for "model_pre_change" and properly stop editing. * e-table-model.c, e-table-model.h: Added a "model_pre_change" signal that gets sent before any row numbers are changed. * e-table-sorted-variable.c, e-table-subset-variable.c: Emit "model_pre_change" signals as appropriate. * e-table-subset.c, e-table-subset.h: Proxy "model_pre_changed" signals. svn path=/trunk/; revision=4472 --- widgets/table/e-table-model.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/table/e-table-model.h') diff --git a/widgets/table/e-table-model.h b/widgets/table/e-table-model.h index 447903c83a..d4fae1659e 100644 --- a/widgets/table/e-table-model.h +++ b/widgets/table/e-table-model.h @@ -50,6 +50,8 @@ typedef struct { * A row inserted: row_inserted * A row deleted: row_deleted */ + void (*model_pre_change) (ETableModel *etm); + void (*model_changed) (ETableModel *etm); void (*model_row_changed) (ETableModel *etm, int row); void (*model_cell_changed) (ETableModel *etm, int col, int row); @@ -76,6 +78,7 @@ char *e_table_model_value_to_string (ETableModel *e_table_model, int col, /* * Routines for emitting signals on the e_table */ +void e_table_model_pre_change (ETableModel *e_table_model); void e_table_model_changed (ETableModel *e_table_model); void e_table_model_row_changed (ETableModel *e_table_model, int row); void e_table_model_cell_changed (ETableModel *e_table_model, int col, int row); -- cgit