aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/ea-cell-table.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-11 23:50:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-09-12 02:14:04 +0800
commitebcce86769d174cce6e881740c5e9bcedce28e06 (patch)
treeb2cc2d18ceb0c3bd3e78f5b768c1b6926b69bb4a /widgets/misc/ea-cell-table.c
parent1e3deb31476cf0026011876327be83e9a47847ee (diff)
downloadgsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.gz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.bz2
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.lz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.xz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.zst
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'widgets/misc/ea-cell-table.c')
-rw-r--r--widgets/misc/ea-cell-table.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/misc/ea-cell-table.c b/widgets/misc/ea-cell-table.c
index be859943fd..b183ef9671 100644
--- a/widgets/misc/ea-cell-table.c
+++ b/widgets/misc/ea-cell-table.c
@@ -38,15 +38,15 @@ ea_cell_table_create (gint rows, gint columns, gboolean column_first)
cell_data->column_labels = g_new0 (gchar *, columns);
for (index = columns -1; index >= 0; --index)
- cell_data->column_labels [index] = NULL;
+ cell_data->column_labels[index] = NULL;
cell_data->row_labels = g_new0 (gchar *, rows);
for (index = rows -1; index >= 0; --index)
- cell_data->row_labels [index] = NULL;
+ cell_data->row_labels[index] = NULL;
cell_data->cells = g_new0 (gpointer, (columns * rows));
for (index = (columns * rows) -1; index >= 0; --index)
- cell_data->cells [index] = NULL;
+ cell_data->cells[index] = NULL;
return cell_data;
}
@@ -57,13 +57,13 @@ ea_cell_table_destroy (EaCellTable * cell_data)
g_return_if_fail (cell_data);
for (index = 0; index < cell_data->columns; ++index)
- if (cell_data->column_labels [index])
- g_free (cell_data->column_labels [index]);
+ if (cell_data->column_labels[index])
+ g_free (cell_data->column_labels[index]);
g_free (cell_data->column_labels);
for (index = 0; index < cell_data->rows; ++index)
- if (cell_data->row_labels [index])
- g_free (cell_data->row_labels [index]);
+ if (cell_data->row_labels[index])
+ g_free (cell_data->row_labels[index]);
g_free (cell_data->row_labels);
for (index = (cell_data->columns * cell_data->rows) -1;
@@ -119,7 +119,7 @@ ea_cell_table_get_cell_at_index (EaCellTable * cell_data,
g_return_val_if_fail (cell_data, NULL);
if (index >=0 && index < (cell_data->columns * cell_data->rows))
- return cell_data->cells [index];
+ return cell_data->cells[index];
return NULL;
}