From 832bcdf998ea2b015a9b6904f72bfb3949f1b80a Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 17 Apr 2000 05:53:32 +0000 Subject: add table-size-test * Makefile.am (noinst_PROGRAMS): add table-size-test * .cvsignore: add table-size-test. * e-cell-text.c (ect_ecent): use e_table_model_is_cell_editable instead of E_CELL_EDITABLE. * e-cell-toggle.c (etog_event): same. * e-cell.c (e_cell_init): don't call e_cell_set_editable. that info comes from the model. (e_cell_set_editable): removed function. * e-cell.h: remove the E_CELL_EDITABLE flag. that should be retrieved from the model. also, remove the prototype for e_cell_set_editable. * e-table-size-test.c: new file, for a stress test of sorts, of a large, uneditable e-table. svn path=/trunk/; revision=2468 --- widgets/table/e-cell.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'widgets/table/e-cell.c') diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c index d038f80b5c..b472b6f6ff 100644 --- a/widgets/table/e-cell.c +++ b/widgets/table/e-cell.c @@ -109,10 +109,6 @@ e_cell_class_init (GtkObjectClass *object_class) static void e_cell_init (GtkObject *object) { - /* - * By default we are editable, that is what the old behaviour was - */ - e_cell_set_editable (E_CELL (object), TRUE); } E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, e_cell_init, PARENT_TYPE); @@ -178,13 +174,3 @@ e_cell_leave_edit (ECellView *ecell_view, int model_col, int view_col, int row, E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->leave_edit ( ecell_view, model_col, view_col, row, edit_context); } - -void -e_cell_set_editable (ECell *ecell, gboolean editable) -{ - if (editable) - GTK_OBJECT (ecell)->flags |= E_CELL_EDITABLE; - else - GTK_OBJECT (ecell)->flags &= ~E_CELL_EDITABLE; -} - -- cgit v1.2.3