diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-table/e-table-text-model.c | 5 | ||||
-rw-r--r-- | widgets/table/e-table-text-model.c | 5 | ||||
-rw-r--r-- | widgets/text/e-table-text-model.c | 5 |
4 files changed, 17 insertions, 3 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); 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); diff --git a/widgets/text/e-table-text-model.c b/widgets/text/e-table-text-model.c index 69ffdc3568..37c13080a7 100644 --- a/widgets/text/e-table-text-model.c +++ b/widgets/text/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); |