aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-table-text-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-05 09:21:28 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-05 09:21:28 +0800
commit0d327d6fc33813fcc06ae52b10cb74c7b0421acd (patch)
treea7ce0e0329996a99abb140dd4b4f49197b2f4934 /widgets/text/e-table-text-model.c
parentab9a56f51b6c836884eb1fd7d8864807e6c5ed40 (diff)
downloadgsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar.gz
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar.bz2
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar.lz
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar.xz
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.tar.zst
gsoc2013-evolution-0d327d6fc33813fcc06ae52b10cb74c7b0421acd.zip
Fixed some referencing and lifetime issues.
2000-04-04 Christopher James Lahey <clahey@helixcode.com> * widgets/e-minicard/e-minicard.c: Fixed some referencing and lifetime issues. From widgets/e-table: 2000-04-04 Christopher James Lahey <clahey@helixcode.com> * e-table-text-model.c: Make this assert a bit more readable. * e-table-item.c: Fix update loop behavior. svn path=/trunk/; revision=2291
Diffstat (limited to 'widgets/text/e-table-text-model.c')
-rw-r--r--widgets/text/e-table-text-model.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/text/e-table-text-model.c b/widgets/text/e-table-text-model.c
index c047c75ae3..5b6fa8b707 100644
--- a/widgets/text/e-table-text-model.c
+++ b/widgets/text/e-table-text-model.c
@@ -108,9 +108,10 @@ e_table_text_model_destroy (GtkObject *object)
g_return_if_fail (E_IS_TABLE_TEXT_MODEL (object));
model = E_TABLE_TEXT_MODEL (object);
-
- g_assert (!model->model || GTK_IS_OBJECT (model->model));
+ if (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);