From 23587bebe83c772d08ab2ae7faa31dffa45b0987 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 31 Oct 2001 10:33:51 +0000 Subject: Added frozen_count variable to know not to show the cursor while a change 2001-10-31 Christopher James Lahey * e-table-item.c, e-table-item.h: Added frozen_count variable to know not to show the cursor while a change is going on. * e-table-model.c, e-table-model.h, e-tree-model.c, e-tree-model.h: Added a model_no_change signal to pair with a pre_change if there's no change. * e-table-selection-model.h: Removed an unused frozen field here. * e-table-sorted.c, e-table-subset.c, e-table-subset.h, e-table-without.c, e-tree-memory.c, e-tree-sorted.c, e-tree-table-adapter.c: Made sure pre_changes were all matched by some change. Proxy no_change signal where appropriate. * e-tree-selection-model.c: Keep track of the frozen_count variable to know whether a change is going on. svn path=/trunk/; revision=14523 --- 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 629cce49bc..45731added 100644 --- a/widgets/table/e-table-model.h +++ b/widgets/table/e-table-model.h @@ -77,6 +77,7 @@ typedef struct { /* * These all come after the change has been made. + * No changes, cancel pre_change: no_change * Major structural changes: model_changed * Changes only in a row: row_changed * Only changes in a cell: cell_changed @@ -85,6 +86,7 @@ typedef struct { */ void (*model_pre_change) (ETableModel *etm); + void (*model_no_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); @@ -144,6 +146,7 @@ char *e_table_model_value_to_string (ETableModel *e_table_model, * Routines for emitting signals on the e_table */ void e_table_model_pre_change (ETableModel *e_table_model); +void e_table_model_no_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); -- cgit