aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-text-model.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-03-23 01:22:08 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-03-23 01:22:08 +0800
commit175fcc0ed5505da062bae09d6f3ce77f5b179536 (patch)
treea1ea40c4b76535fb30a2799db593a71972194aeb /widgets/table/e-table-text-model.c
parent0f5f6d79199b16b0db1b7530c8835ad6a3bbe73c (diff)
downloadgsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.gz
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.zst
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.zip
Added some assertions.
* e-table-text-model.c (e_table_text_model_destroy): Added some assertions. svn path=/trunk/; revision=2146
Diffstat (limited to 'widgets/table/e-table-text-model.c')
-rw-r--r--widgets/table/e-table-text-model.c5
1 files changed, 4 insertions, 1 deletions
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);