From c85109fc322137596bf34cffc5445d568223c60d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 12 Jul 2012 08:02:18 -0400 Subject: Coding style and whitespace cleanup. --- filter/e-filter-datespec.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'filter/e-filter-datespec.c') diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c index 58685e0fed..2464dd2bbf 100644 --- a/filter/e-filter-datespec.c +++ b/filter/e-filter-datespec.c @@ -66,20 +66,20 @@ typedef struct { /* Don't delete this code, since it is needed so that xgettext can extract the translations. * Please, keep these strings in sync with the strings in the timespans array */ - ngettext("1 second ago", "%d seconds ago", 1); - ngettext("1 second in the future", "%d seconds in the future", 1); - ngettext("1 minute ago", "%d minutes ago", 1); - ngettext("1 minute in the future", "%d minutes in the future", 1); - ngettext("1 hour ago", "%d hours ago", 1); - ngettext("1 hour in the future", "%d hours in the future", 1); - ngettext("1 day ago", "%d days ago", 1); - ngettext("1 day in the future", "%d days in the future", 1); - ngettext("1 week ago", "%d weeks ago", 1); - ngettext("1 week in the future", "%d weeks in the future", 1) - ngettext("1 month ago", "%d months ago", 1); - ngettext("1 month in the future", "%d months in the future", 1); - ngettext("1 year ago", "%d years ago", 1); - ngettext("1 year in the future", "%d years in the future", 1); + ngettext ("1 second ago", "%d seconds ago", 1); + ngettext ("1 second in the future", "%d seconds in the future", 1); + ngettext ("1 minute ago", "%d minutes ago", 1); + ngettext ("1 minute in the future", "%d minutes in the future", 1); + ngettext ("1 hour ago", "%d hours ago", 1); + ngettext ("1 hour in the future", "%d hours in the future", 1); + ngettext ("1 day ago", "%d days ago", 1); + ngettext ("1 day in the future", "%d days in the future", 1); + ngettext ("1 week ago", "%d weeks ago", 1); + ngettext ("1 week in the future", "%d weeks in the future", 1) + ngettext ("1 month ago", "%d months ago", 1); + ngettext ("1 month in the future", "%d months in the future", 1); + ngettext ("1 year ago", "%d years ago", 1); + ngettext ("1 year in the future", "%d years in the future", 1); #endif @@ -139,7 +139,7 @@ set_button (EFilterDatespec *fds) localtime_r (&fds->value, &tm); /* strftime for date filter display, only needs to show a day date (i.e. no time) */ - strftime(buf, sizeof(buf), _("%d-%b-%Y"), &tm); + strftime (buf, sizeof (buf), _("%d-%b-%Y"), &tm); break; } case FDST_X_AGO: if (fds->value == 0) @@ -363,17 +363,17 @@ filter_datespec_xml_encode (EFilterElement *element) EFilterDatespec *fds = E_FILTER_DATESPEC (element); gchar str[32]; - d(printf ("Encoding datespec as xml\n")); + d (printf ("Encoding datespec as xml\n")); value = xmlNewNode (NULL, (xmlChar *)"value"); - xmlSetProp (value, (xmlChar *)"name", (xmlChar *)element->name); + xmlSetProp (value, (xmlChar *)"name", (xmlChar *) element->name); xmlSetProp (value, (xmlChar *)"type", (xmlChar *)"datespec"); work = xmlNewChild (value, NULL, (xmlChar *)"datespec", NULL); sprintf (str, "%d", fds->type); - xmlSetProp (work, (xmlChar *)"type", (xmlChar *)str); - sprintf (str, "%d", (gint)fds->value); - xmlSetProp (work, (xmlChar *)"value", (xmlChar *)str); + xmlSetProp (work, (xmlChar *)"type", (xmlChar *) str); + sprintf (str, "%d", (gint) fds->value); + xmlSetProp (work, (xmlChar *)"value", (xmlChar *) str); return value; } @@ -386,14 +386,14 @@ filter_datespec_xml_decode (EFilterElement *element, xmlNodePtr n; xmlChar *val; - d(printf ("Decoding datespec from xml %p\n", element)); + d (printf ("Decoding datespec from xml %p\n", element)); xmlFree (element->name); - element->name = (gchar *)xmlGetProp (node, (xmlChar *)"name"); + element->name = (gchar *) xmlGetProp (node, (xmlChar *)"name"); n = node->children; while (n) { - if (!strcmp ((gchar *)n->name, "datespec")) { + if (!strcmp ((gchar *) n->name, "datespec")) { val = xmlGetProp (n, (xmlChar *)"type"); fds->type = atoi ((gchar *) val); xmlFree (val); -- cgit v1.2.3