From 56f9196ac4e30fd0f5e0bd79bab0dcfc9856c8ff Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 7 May 2000 20:49:02 +0000 Subject: Handle row_inserted and row_deleted signals properly. 2000-05-07 Christopher James Lahey * e-table-item.c, e-table-item.h, e-table.c, e-table.h: Handle row_inserted and row_deleted signals properly. * e-table-model.c, e-table-model.h: Created the row_inserted and row_deleted signals. * e-table-sorted-variable.c, e-table-subset-variable.c: Emit the row_inserted and row_deleted signals as appropriate. svn path=/trunk/; revision=2879 --- widgets/table/e-table-model.h | 7 +++++++ 1 file changed, 7 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 ceca8e348f..e542754f22 100644 --- a/widgets/table/e-table-model.h +++ b/widgets/table/e-table-model.h @@ -37,13 +37,18 @@ typedef struct { */ /* + * These all come after the change has been made. * Major structural changes: model_changed * Changes only in a row: row_changed * Only changes in a cell: cell_changed + * A row inserted: row_inserted + * A row deleted: row_deleted */ void (*model_changed) (ETableModel *etm); void (*model_row_changed) (ETableModel *etm, int row); void (*model_cell_changed) (ETableModel *etm, int col, int row); + void (*model_row_inserted) (ETableModel *etm, int row); + void (*model_row_deleted) (ETableModel *etm, int row); } ETableModelClass; GtkType e_table_model_get_type (void); @@ -67,5 +72,7 @@ void e_table_model_thaw (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); +void e_table_model_row_inserted (ETableModel *e_table_model, int row); +void e_table_model_row_deleted (ETableModel *e_table_model, int row); #endif /* _E_TABLE_MODEL_H_ */ -- cgit