aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-06 01:33:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-06 01:34:28 +0800
commitc6fd77460f5baf88528f5da2ffb99e86a2885ff0 (patch)
tree377ddb36bc9c907a06d5889123582b2066db42a8 /e-util/e-util.c
parent29d8b02c557a65aec4b015b274a830b402da2cfd (diff)
downloadgsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.gz
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.bz2
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.lz
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.xz
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.zst
gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c63
1 files changed, 42 insertions, 21 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 8f91558823..5fdfed901b 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -712,9 +712,11 @@ e_format_number (gint number)
case 0:
divider = epow10 (last_count);
if (number >= divider) {
- group = g_strdup_printf("%0*d", last_count, number % divider);
+ group = g_strdup_printf (
+ "%0*d", last_count, number % divider);
} else {
- group = g_strdup_printf("%d", number % divider);
+ group = g_strdup_printf (
+ "%d", number % divider);
}
number /= divider;
break;
@@ -1132,9 +1134,11 @@ e_flexible_strtod (const gchar *nptr, gchar **endptr)
if (fail_pos) {
if (fail_pos > decimal_point_pos)
- fail_pos = (gchar *)nptr + (fail_pos - copy) - (decimal_point_len - 1);
+ fail_pos =
+ (gchar *) nptr + (fail_pos - copy) -
+ (decimal_point_len - 1);
else
- fail_pos = (gchar *)nptr + (fail_pos - copy);
+ fail_pos = (gchar *) nptr + (fail_pos - copy);
}
g_free (copy);
@@ -1296,41 +1300,58 @@ get_font_options (void)
/* Antialiasing */
if (fo_antialiasing == NULL)
- cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_DEFAULT);
+ cairo_font_options_set_antialias (
+ font_options, CAIRO_ANTIALIAS_DEFAULT);
else if (strcmp (fo_antialiasing, "grayscale") == 0)
- cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_GRAY);
+ cairo_font_options_set_antialias (
+ font_options, CAIRO_ANTIALIAS_GRAY);
else if (strcmp (fo_antialiasing, "rgba") == 0)
- cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_SUBPIXEL);
+ cairo_font_options_set_antialias (
+ font_options, CAIRO_ANTIALIAS_SUBPIXEL);
else if (strcmp (fo_antialiasing, "none") == 0)
- cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_NONE);
+ cairo_font_options_set_antialias (
+ font_options, CAIRO_ANTIALIAS_NONE);
else
- cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_DEFAULT);
+ cairo_font_options_set_antialias (
+ font_options, CAIRO_ANTIALIAS_DEFAULT);
if (fo_hinting == NULL)
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_DEFAULT);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_DEFAULT);
else if (strcmp (fo_hinting, "full") == 0)
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_FULL);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_FULL);
else if (strcmp (fo_hinting, "medium") == 0)
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_MEDIUM);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_MEDIUM);
else if (strcmp (fo_hinting, "slight") == 0)
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_SLIGHT);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_SLIGHT);
else if (strcmp (fo_hinting, "none") == 0)
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_NONE);
else
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_DEFAULT);
+ cairo_font_options_set_hint_style (
+ font_options, CAIRO_HINT_STYLE_DEFAULT);
if (fo_subpixel_order == NULL)
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_DEFAULT);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_DEFAULT);
else if (strcmp (fo_subpixel_order, "rgb") == 0)
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_RGB);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_RGB);
else if (strcmp (fo_subpixel_order, "bgr") == 0)
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_BGR);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_BGR);
else if (strcmp (fo_subpixel_order, "vrgb") == 0)
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_VRGB);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_VRGB);
else if (strcmp (fo_subpixel_order, "vbgr") == 0)
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_VBGR);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_VBGR);
else
- cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_DEFAULT);
+ cairo_font_options_set_subpixel_order (
+ font_options, CAIRO_SUBPIXEL_ORDER_DEFAULT);
g_static_mutex_unlock (&fo_lock);