aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-31 04:32:08 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-31 07:09:19 +0800
commitec73f5522ff2d6f8c476f02a9daaff32ef1db069 (patch)
tree14729b8cbf271405e732b84ca2ca944ceb0815e5 /widgets/table/e-table-header.c
parentc7e371bc5bc8d7898236ac36e1ea0bc08518b791 (diff)
downloadgsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar.gz
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar.bz2
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar.lz
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar.xz
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.tar.zst
gsoc2013-evolution-ec73f5522ff2d6f8c476f02a9daaff32ef1db069.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/table/e-table-header.c')
-rw-r--r--widgets/table/e-table-header.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index e5587ab3e2..3ff4c3472b 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -684,8 +684,8 @@ e_table_header_set_selection (ETableHeader *eth, gboolean allow_selection)
static void
eth_set_size (ETableHeader *eth, gint idx, gint size)
{
- double expansion;
- double old_expansion;
+ gdouble expansion;
+ gdouble old_expansion;
gint min_width;
gint left_width;
gint total_extra;
@@ -775,8 +775,8 @@ eth_set_size (ETableHeader *eth, gint idx, gint size)
old_expansion -= eth->columns[idx]->expansion;
/* Set the new expansion so that it will generate the desired size. */
eth->columns[idx]->expansion =
- expansion * (((double)(size - (eth->columns[idx]->min_width +
- eth->width_extras))) / ((double)total_extra));
+ expansion * (((gdouble)(size - (eth->columns[idx]->min_width +
+ eth->width_extras))) / ((gdouble)total_extra));
/* The expansion left for the columns on the right. */
expansion -= eth->columns[idx]->expansion;
@@ -845,9 +845,9 @@ eth_calc_widths (ETableHeader *eth)
{
gint i;
gint extra;
- double expansion;
+ gdouble expansion;
gint last_position = 0;
- double next_position = 0;
+ gdouble next_position = 0;
gint last_resizable = -1;
gint *widths;
gboolean changed;