aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-12 20:02:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-20 02:17:55 +0800
commitc85109fc322137596bf34cffc5445d568223c60d (patch)
tree711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /e-util/e-util.c
parent7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff)
downloadgsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 707f0d0bbc..80c0de56c2 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -838,7 +838,7 @@ e_color_to_value (GdkColor *color)
* e_rgba_to_value:
* @rgba: a #GdkRGBA
*
-
+ *
* Converts #GdkRGBA to a 24-bit RGB color value
*
* Returns: a 24-bit color value
@@ -856,7 +856,10 @@ e_rgba_to_value (GdkRGBA *rgba)
green = 255 * rgba->green;
blue = 255 * rgba->blue;
- return (guint32) ((((red & 0xFF) << 16) | ((green & 0xFF) << 8) | (blue & 0xFF)) & 0xffffff);
+ return (guint32)
+ ((((red & 0xFF) << 16) |
+ ((green & 0xFF) << 8) |
+ (blue & 0xFF)) & 0xffffff);
}
static gint
@@ -903,7 +906,7 @@ e_format_number (gint number)
number /= divider;
break;
case CHAR_MAX:
- group = g_strdup_printf("%d", number);
+ group = g_strdup_printf ("%d", number);
number = 0;
break;
}
@@ -933,7 +936,7 @@ e_format_number (gint number)
g_list_free (list);
return value;
} else {
- return g_strdup("0");
+ return g_strdup ("0");
}
}
@@ -1034,7 +1037,7 @@ e_strftime_fix_am_pm (gchar *str,
gchar *ffmt;
gsize ret;
- if (strstr(fmt, "%p")==NULL && strstr(fmt, "%P")==NULL) {
+ if (strstr (fmt, "%p") == NULL && strstr (fmt, "%P") == NULL) {
/* No AM/PM involved - can use the fmt string directly */
ret = e_strftime (str, max, fmt, tm);
} else {
@@ -1049,12 +1052,12 @@ e_strftime_fix_am_pm (gchar *str,
/* No AM/PM defined by locale
* must change to 24 hour clock. */
ffmt = g_strdup (fmt);
- for (sp=ffmt; (sp=strstr(sp, "%l")); sp++) {
+ for (sp = ffmt; (sp = strstr (sp, "%l")); sp++) {
/* Maybe this should be 'k', but I have never
* seen a 24 clock actually use that format. */
sp[1]='H';
}
- for (sp=ffmt; (sp=strstr(sp, "%I")); sp++) {
+ for (sp = ffmt; (sp = strstr (sp, "%I")); sp++) {
sp[1]='H';
}
ret = e_strftime (str, max, ffmt, tm);
@@ -1392,7 +1395,8 @@ e_binding_transform_color_to_string (GBinding *binding,
/* encode color manually, because css styles expect colors in #rrggbb,
* not in #rrrrggggbbbb, which is a result of gdk_color_to_string()
*/
- string = g_strdup_printf ("#%02x%02x%02x",
+ string = g_strdup_printf (
+ "#%02x%02x%02x",
(gint) color->red * 256 / 65536,
(gint) color->green * 256 / 65536,
(gint) color->blue * 256 / 65536);