aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sorter-array.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-16 23:25:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-09-04 19:34:32 +0800
commitfcbbdfbd18e15b4ee8322a0217cf03a689a5e033 (patch)
treee16cd2a2279558c6a2bfb6ca39fcbaac4c85ba59 /e-util/e-sorter-array.c
parentf78417c48861759d7b0c4535ecd3febe4638a7d3 (diff)
downloadgsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.gz
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.bz2
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.lz
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.xz
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.zst
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-sorter-array.c')
-rw-r--r--e-util/e-sorter-array.c32
1 files changed, 21 insertions, 11 deletions
diff --git a/e-util/e-sorter-array.c b/e-util/e-sorter-array.c
index 074d45d639..b36eb06007 100644
--- a/e-util/e-sorter-array.c
+++ b/e-util/e-sorter-array.c
@@ -55,7 +55,9 @@ static gboolean esa_needs_sorting (ESorter *esa);
#define ESA_NEEDS_SORTING(esa) (((ESorterArray *) (esa))->compare != NULL)
static gint
-esort_callback (gconstpointer data1, gconstpointer data2, gpointer user_data)
+esort_callback (gconstpointer data1,
+ gconstpointer data2,
+ gpointer user_data)
{
ESorterArray *esa = user_data;
gint ret_val;
@@ -125,7 +127,8 @@ esa_backsort (ESorterArray *esa)
}
static gint
-esa_model_to_sorted (ESorter *es, gint row)
+esa_model_to_sorted (ESorter *es,
+ gint row)
{
ESorterArray *esa = E_SORTER_ARRAY (es);
@@ -142,7 +145,8 @@ esa_model_to_sorted (ESorter *es, gint row)
}
static gint
-esa_sorted_to_model (ESorter *es, gint row)
+esa_sorted_to_model (ESorter *es,
+ gint row)
{
ESorterArray *esa = (ESorterArray *) es;
@@ -159,7 +163,9 @@ esa_sorted_to_model (ESorter *es, gint row)
}
static void
-esa_get_model_to_sorted_array (ESorter *es, gint **array, gint *count)
+esa_get_model_to_sorted_array (ESorter *es,
+ gint **array,
+ gint *count)
{
ESorterArray *esa = E_SORTER_ARRAY (es);
if (array || count) {
@@ -173,7 +179,9 @@ esa_get_model_to_sorted_array (ESorter *es, gint **array, gint *count)
}
static void
-esa_get_sorted_to_model_array (ESorter *es, gint **array, gint *count)
+esa_get_sorted_to_model_array (ESorter *es,
+ gint **array,
+ gint *count)
{
ESorterArray *esa = E_SORTER_ARRAY (es);
if (array || count) {
@@ -204,14 +212,16 @@ e_sorter_array_clean (ESorterArray *esa)
}
void
-e_sorter_array_set_count (ESorterArray *esa, gint count)
+e_sorter_array_set_count (ESorterArray *esa,
+ gint count)
{
e_sorter_array_clean (esa);
esa->rows = count;
}
void
-e_sorter_array_append (ESorterArray *esa, gint count)
+e_sorter_array_append (ESorterArray *esa,
+ gint count)
{
gint i;
g_free (esa->backsorted);
@@ -239,10 +249,10 @@ e_sorter_array_append (ESorterArray *esa, gint count)
}
ESorterArray *
-e_sorter_array_construct (ESorterArray *esa,
- ECreateCmpCacheFunc create_cmp_cache,
- ECompareRowsFunc compare,
- gpointer closure)
+e_sorter_array_construct (ESorterArray *esa,
+ ECreateCmpCacheFunc create_cmp_cache,
+ ECompareRowsFunc compare,
+ gpointer closure)
{
esa->create_cmp_cache = create_cmp_cache;
esa->compare = compare;