aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-22 18:02:29 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-22 18:02:29 +0800
commitbbaba8e024fdd4634f220df61e8fb2a3e2b52148 (patch)
tree40f15d48b643b557771181bb0bb09b1f6480e26e /widgets
parent330753151999e90f94e4159d74b50c1728be344a (diff)
downloadgsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar.gz
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar.bz2
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar.lz
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar.xz
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.tar.zst
gsoc2013-evolution-bbaba8e024fdd4634f220df61e8fb2a3e2b52148.zip
Fixed the parity on all the g_return_ifs and g_return_val_ifs.
2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory.c: Fixed the parity on all the g_return_ifs and g_return_val_ifs. svn path=/trunk/; revision=8887
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-memory.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/table/e-table-memory.c b/widgets/table/e-table-memory.c
index 97ea2204e7..33ac959283 100644
--- a/widgets/table/e-table-memory.c
+++ b/widgets/table/e-table-memory.c
@@ -135,8 +135,8 @@ e_table_memory_new (void)
gpointer
e_table_memory_get_data (ETableMemory *etmm, int row)
{
- g_return_val_if_fail(row < 0, NULL);
- g_return_val_if_fail(row >= etmm->priv->num_rows, NULL);
+ g_return_val_if_fail(row >= 0, NULL);
+ g_return_val_if_fail(row < etmm->priv->num_rows, NULL);
return etmm->priv->data[row];
}
@@ -152,8 +152,8 @@ e_table_memory_get_data (ETableMemory *etmm, int row)
void
e_table_memory_set_data (ETableMemory *etmm, int row, gpointer data)
{
- g_return_if_fail(row < 0);
- g_return_if_fail(row > etmm->priv->num_rows);
+ g_return_if_fail(row >= 0);
+ g_return_if_fail(row < etmm->priv->num_rows);
etmm->priv->data[row] = data;
}
@@ -174,8 +174,8 @@ e_table_memory_insert (ETableMemory *etmm,
int row,
gpointer data)
{
- g_return_if_fail(row < -1);
- g_return_if_fail(row > etmm->priv->num_rows);
+ g_return_if_fail(row >= -1);
+ g_return_if_fail(row < etmm->priv->num_rows);
if (!etmm->priv->frozen)
e_table_model_pre_change(E_TABLE_MODEL(etmm));
@@ -206,8 +206,8 @@ e_table_memory_remove (ETableMemory *etmm, int row)
{
gpointer ret;
- g_return_val_if_fail(row < 0, NULL);
- g_return_val_if_fail(row >= etmm->priv->num_rows, NULL);
+ g_return_val_if_fail(row >= 0, NULL);
+ g_return_val_if_fail(row < etmm->priv->num_rows, NULL);
if (!etmm->priv->frozen)
e_table_model_pre_change(E_TABLE_MODEL(etmm));