aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.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-col.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-col.c')
-rw-r--r--widgets/table/e-table-col.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c
index 0e7c14f748..c6a734b3ee 100644
--- a/widgets/table/e-table-col.c
+++ b/widgets/table/e-table-col.c
@@ -97,7 +97,9 @@ e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
g_return_val_if_fail (expansion >= 0, NULL);
g_return_val_if_fail (min_width >= 0, NULL);
+ g_return_val_if_fail (ecell != NULL, NULL);
g_return_val_if_fail (compare != NULL, NULL);
+ g_return_val_if_fail (text != NULL, NULL);
etc = gtk_type_new (E_TABLE_COL_TYPE);
@@ -129,7 +131,9 @@ e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, double expansion, i
g_return_val_if_fail (expansion >= 0, NULL);
g_return_val_if_fail (min_width >= 0, NULL);
+ g_return_val_if_fail (ecell != NULL, NULL);
g_return_val_if_fail (compare != NULL, NULL);
+ g_return_val_if_fail (pixbuf != NULL, NULL);
etc = gtk_type_new (E_TABLE_COL_TYPE);
@@ -157,12 +161,18 @@ e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, double expansion, i
void
e_table_col_set_arrow (ETableCol *col, ETableColArrow arrow)
{
+ g_return_if_fail (col != NULL);
+ g_return_if_fail (E_IS_TABLE_COL(col));
+
col->arrow = arrow;
}
ETableColArrow
e_table_col_get_arrow (ETableCol *col)
{
+ g_return_val_if_fail (col != NULL, E_TABLE_COL_ARROW_NONE);
+ g_return_val_if_fail (E_IS_TABLE_COL(col), E_TABLE_COL_ARROW_NONE);
+
return col->arrow;
}