diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /filter/e-filter-color.c | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-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 'filter/e-filter-color.c')
-rw-r--r-- | filter/e-filter-color.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/filter/e-filter-color.c b/filter/e-filter-color.c index 1540841968..3b39cabbbf 100644 --- a/filter/e-filter-color.c +++ b/filter/e-filter-color.c @@ -63,10 +63,10 @@ filter_color_xml_encode (EFilterElement *element) g_snprintf (spec, sizeof (spec), "#%04x%04x%04x", fc->color.red, fc->color.green, fc->color.blue); - value = xmlNewNode(NULL, (xmlChar *)"value"); - xmlSetProp(value, (xmlChar *)"type", (xmlChar *)"colour"); - xmlSetProp(value, (xmlChar *)"name", (xmlChar *)element->name); - xmlSetProp(value, (xmlChar *)"spec", (xmlChar *)spec); + value = xmlNewNode (NULL, (xmlChar *)"value"); + xmlSetProp (value, (xmlChar *)"type", (xmlChar *)"colour"); + xmlSetProp (value, (xmlChar *)"name", (xmlChar *) element->name); + xmlSetProp (value, (xmlChar *)"spec", (xmlChar *) spec); return value; } @@ -79,22 +79,22 @@ filter_color_xml_decode (EFilterElement *element, xmlChar *prop; xmlFree (element->name); - element->name = (gchar *)xmlGetProp(node, (xmlChar *)"name"); + element->name = (gchar *) xmlGetProp (node, (xmlChar *)"name"); - prop = xmlGetProp(node, (xmlChar *)"spec"); + prop = xmlGetProp (node, (xmlChar *)"spec"); if (prop != NULL) { gdk_color_parse ((gchar *) prop, &fc->color); xmlFree (prop); } else { /* try reading the old RGB properties */ - prop = xmlGetProp(node, (xmlChar *)"red"); - sscanf((gchar *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.red); + prop = xmlGetProp (node, (xmlChar *)"red"); + sscanf ((gchar *) prop, "%" G_GINT16_MODIFIER "x", &fc->color.red); xmlFree (prop); - prop = xmlGetProp(node, (xmlChar *)"green"); - sscanf((gchar *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.green); + prop = xmlGetProp (node, (xmlChar *)"green"); + sscanf ((gchar *) prop, "%" G_GINT16_MODIFIER "x", &fc->color.green); xmlFree (prop); - prop = xmlGetProp(node, (xmlChar *)"blue"); - sscanf((gchar *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.blue); + prop = xmlGetProp (node, (xmlChar *)"blue"); + sscanf ((gchar *) prop, "%" G_GINT16_MODIFIER "x", &fc->color.blue); xmlFree (prop); } |