aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-text-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-26 17:15:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-26 17:15:32 +0800
commit20925d94eb5649df410820e67017a299ce5d867d (patch)
tree34a29bc7dc4aca4cae7fd97e5aa5a97497f4926b /widgets/table/e-table-text-model.c
parent4c768a32bf0d07dea885d7e23da66762a7d2c82a (diff)
downloadgsoc2013-evolution-20925d94eb5649df410820e67017a299ce5d867d.tar.gz
gsoc2013-evolution-20925d94eb5649df410820e67017a299ce5d867d.tar.zst
gsoc2013-evolution-20925d94eb5649df410820e67017a299ce5d867d.zip
Added some g_return_if_fails and g_return_val_if_fails.
2000-08-25 Christopher James Lahey <clahey@helixcode.com> * e-table-col.c, e-table-config.c, e-table-header.c, e-table-text-model.c: Added some g_return_if_fails and g_return_val_if_fails. svn path=/trunk/; revision=5056
Diffstat (limited to 'widgets/table/e-table-text-model.c')
-rw-r--r--widgets/table/e-table-text-model.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-table-text-model.c b/widgets/table/e-table-text-model.c
index 5b6fa8b707..abda0bcc84 100644
--- a/widgets/table/e-table-text-model.c
+++ b/widgets/table/e-table-text-model.c
@@ -198,7 +198,12 @@ row_changed (ETableModel *table_model, int row, ETableTextModel *model)
ETableTextModel *
e_table_text_model_new (ETableModel *table_model, int row, int model_col)
{
- ETableTextModel *model = gtk_type_new (e_table_text_model_get_type ());
+ ETableTextModel *model;
+
+ g_return_val_if_fail(table_model != NULL, NULL);
+ g_return_val_if_fail(E_IS_TABLE_MODEL(table_model), NULL);
+
+ model = gtk_type_new (e_table_text_model_get_type ());
model->model = table_model;
if (model->model){
gtk_object_ref (GTK_OBJECT(model->model));