diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-12-12 17:20:46 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-12-12 17:20:46 +0800 |
commit | fa895ed8e1454d4d761b8789381ca5ba464a7c93 (patch) | |
tree | 594aa949bfdb351a0cb6646bb950744c8a791c88 /widgets/e-table/e-table-item.c | |
parent | 863f8aa634005c6400d629c353f5fed485106fce (diff) | |
download | gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar.gz gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar.bz2 gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar.lz gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar.xz gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.tar.zst gsoc2013-evolution-fa895ed8e1454d4d761b8789381ca5ba464a7c93.zip |
More work. We now have the basics for nesting working, now we need all the
More work. We now have the basics for nesting working, now we need all
the interactions done properly.
I want to use a new GnomeCanvasItem for the nesting parent as well.
DnD will have to be done with our own protocol to provide all the feedback
we want to provide.
Miguel
svn path=/trunk/; revision=1481
Diffstat (limited to 'widgets/e-table/e-table-item.c')
-rw-r--r-- | widgets/e-table/e-table-item.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index bdeda14a7b..d0a0ad8cba 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-table/e-table-item.c @@ -73,7 +73,7 @@ eti_realize_cell_views (ETableItem *eti) for (i = 0; i < eti->n_cells; i++){ ETableCol *col = e_table_header_get_column (eti->header, i); - eti->cell_views [i] = e_cell_realize (col->ecell, eti); + eti->cell_views [i] = e_cell_realize (col->ecell, eti->table_model, eti); } } @@ -91,6 +91,7 @@ eti_unrealize_cell_views (ETableItem *eti) eti->cell_views [i] = NULL; } g_free (eti->cell_views); + eti->cell_views = NULL; eti->n_cells = 0; } @@ -368,8 +369,12 @@ eti_header_structure_changed (ETableHeader *eth, ETableItem *eti) eti->cols = e_table_header_count (eti->header); eti->width = e_table_header_total_width (eti->header); - eti_unrealize_cell_views (eti); - eti_realize_cell_views (eti); + + if (eti->cell_views){ + eti_unrealize_cell_views (eti); + eti_realize_cell_views (eti); + } + eti_update (GNOME_CANVAS_ITEM (eti), NULL, NULL, 0); eti_request_redraw (eti); |