aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table
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/e-table
parent0f5f6d79199b16b0db1b7530c8835ad6a3bbe73c (diff)
downloadgsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.gz
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.bz2
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.lz
gsoc2013-evolution-175fcc0ed5505da062bae09d6f3ce77f5b179536.tar.xz
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/e-table')
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-text-model.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index b5a2bf56c9..dade0d7675 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-22 Matt Loper <matt@helixcode.com>
+
+ * e-table-text-model.c (e_table_text_model_destroy): Added some
+ assertions.
+
2000-03-21 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make rectangles resize properly when receiving the
diff --git a/widgets/e-table/e-table-text-model.c b/widgets/e-table/e-table-text-model.c
index 69ffdc3568..37c13080a7 100644
--- a/widgets/e-table/e-table-text-model.c
+++ b/widgets/e-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);