diff options
Diffstat (limited to 'widgets/table/e-cell-vbox.c')
-rw-r--r-- | widgets/table/e-cell-vbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/table/e-cell-vbox.c b/widgets/table/e-cell-vbox.c index bfc140e9fd..ab64ac4416 100644 --- a/widgets/table/e-cell-vbox.c +++ b/widgets/table/e-cell-vbox.c @@ -61,6 +61,8 @@ ecv_new_view (ECell *ecell, ETableModel *table_model, void *e_table_item_view) vbox_view->cell_view.ecell = ecell; vbox_view->cell_view.e_table_model = table_model; vbox_view->cell_view.e_table_item_view = e_table_item_view; + vbox_view->cell_view.kill_view_cb = NULL; + vbox_view->cell_view.kill_view_cb_data = NULL; /* create our subcell view */ vbox_view->subcell_view_count = ecv->subcell_count; @@ -84,6 +86,12 @@ ecv_kill_view (ECellView *ecv) ECellVboxView *vbox_view = (ECellVboxView *) ecv; int i; + if (vbox_view->cell_view.kill_view_cb) + (vbox_view->cell_view.kill_view_cb)(ecv, vbox_view->cell_view.kill_view_cb_data); + + if (vbox_view->cell_view.kill_view_cb_data) + g_list_free(vbox_view->cell_view.kill_view_cb_data); + /* kill our subcell view */ for (i = 0; i < vbox_view->subcell_view_count; i++) e_cell_kill_view (vbox_view->subcell_views[i]); |