From 175fcc0ed5505da062bae09d6f3ce77f5b179536 Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Wed, 22 Mar 2000 17:22:08 +0000 Subject: Added some assertions. * e-table-text-model.c (e_table_text_model_destroy): Added some assertions. svn path=/trunk/; revision=2146 --- widgets/table/e-table-text-model.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-table-text-model.c') diff --git a/widgets/table/e-table-text-model.c b/widgets/table/e-table-text-model.c index 69ffdc3568..37c13080a7 100644 --- a/widgets/table/e-table-text-model.c +++ b/widgets/table/e-table-text-model.c @@ -105,10 +105,13 @@ e_table_text_model_destroy (GtkObject *object) ETableTextModel *model; g_return_if_fail (object != NULL); - g_return_if_fail (E_IS_TEXT_MODEL (object)); + g_return_if_fail (E_IS_TABLE_TEXT_MODEL (object)); model = E_TABLE_TEXT_MODEL (object); + g_assert (model->model); + g_assert (GTK_IS_OBJECT (model->model)); + if (model->cell_changed_signal_id) gtk_signal_disconnect(GTK_OBJECT(model->model), model->cell_changed_signal_id); -- cgit