From f55c64565cd6b2820652b09cd647581067e4c188 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 31 Dec 1999 02:23:37 +0000 Subject: Ok, the restructuring of ETableItem to compute its size without hacks is Ok, the restructuring of ETableItem to compute its size without hacks is in now. I am feeling better now. 1999-12-30 Miguel de Icaza * e-table-item.c (eti_attach_cell_views): New routine, creates the cell views. (eti_detach_cell_views): Detaches the cell_views from the ETableItem. (eti_realize_cell_views, eti_unrealize_cell_views): Simplified to just do realize/unrealize notification. (eti_add_table_model): Only attach the cells when we have both the table model and the header model. * e-cell.h (ECellClass): Added two new methods: new_view and kill_view which drive the view process (instead of putting that on realize/unrealize). * e-cell.c: Adapt the code to use the new scheme for view instantiation. * e-cell-text.c, e-cell-toggle.c: Adapted to the new class changes. svn path=/trunk/; revision=1523 --- widgets/table/e-table.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index ff81866361..01389135bf 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -441,21 +441,10 @@ e_table_canvas_realize (GtkWidget *widget) "y", 0.0, NULL); - e_table->gen_header_width = e_table_header_total_width (e_table->header); - leaf = e_table_create_nodes ( e_table, e_table->model, e_table->header, GNOME_CANVAS_GROUP (e_table->root), 0, groups); - { - static int warn_shown; - - if (!warn_shown){ - g_warning ("Precompute the width, and update on model changes"); - warn_shown = 1; - } - } - gnome_canvas_set_scroll_region ( GNOME_CANVAS (e_table_canvas), 0, 0, -- cgit