aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-colour.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:00:45 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:00:45 +0800
commit677df14504c5ad80efbb417c6ceea8d8494e583d (patch)
treeafc5cbc68e6029b5bea0a79c4e42a3f621ba929e /filter/filter-colour.c
parent187e0c0464e1db79762e2c80b0301eccb3312bad (diff)
downloadgsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.gz
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.bz2
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.lz
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.xz
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.zst
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.zip
Fix compilation warnings in filter directory (#439118).
svn path=/trunk/; revision=33624
Diffstat (limited to 'filter/filter-colour.c')
-rw-r--r--filter/filter-colour.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/filter/filter-colour.c b/filter/filter-colour.c
index 97a343bc63..c674928109 100644
--- a/filter/filter-colour.c
+++ b/filter/filter-colour.c
@@ -144,10 +144,10 @@ xml_encode (FilterElement *fe)
g_snprintf (spec, sizeof (spec), "#%04x%04x%04x",
fc->color.red, fc->color.green, fc->color.blue);
- value = xmlNewNode(NULL, "value");
- xmlSetProp(value, "name", fe->name);
- xmlSetProp(value, "type", "colour");
- xmlSetProp(value, "spec", spec);
+ value = xmlNewNode(NULL, (const unsigned char *)"value");
+ xmlSetProp(value, (const unsigned char *)"type", (const unsigned char *)"colour");
+ xmlSetProp(value, (const unsigned char *)"name", (unsigned char *)fe->name);
+ xmlSetProp(value, (const unsigned char *)"spec", (unsigned char *)spec);
return value;
}
@@ -159,22 +159,22 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
xmlChar *prop;
xmlFree (fe->name);
- fe->name = xmlGetProp(node, "name");
+ fe->name = (char *)xmlGetProp(node, (const unsigned char *)"name");
- prop = xmlGetProp(node, "spec");
+ prop = xmlGetProp(node, (const unsigned char *)"spec");
if (prop != NULL) {
- gdk_color_parse(prop, &fc->color);
+ gdk_color_parse((char *)prop, &fc->color);
xmlFree (prop);
} else {
/* try reading the old RGB properties */
- prop = xmlGetProp(node, "red");
- sscanf(prop, "%" G_GINT16_MODIFIER "x", &fc->color.red);
+ prop = xmlGetProp(node, (const unsigned char *)"red");
+ sscanf((char *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.red);
xmlFree (prop);
- prop = xmlGetProp(node, "green");
- sscanf(prop, "%" G_GINT16_MODIFIER "x", &fc->color.green);
+ prop = xmlGetProp(node, (const unsigned char *)"green");
+ sscanf((char *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.green);
xmlFree (prop);
- prop = xmlGetProp(node, "blue");
- sscanf(prop, "%" G_GINT16_MODIFIER "x", &fc->color.blue);
+ prop = xmlGetProp(node, (const unsigned char *)"blue");
+ sscanf((char *)prop, "%" G_GINT16_MODIFIER "x", &fc->color.blue);
xmlFree (prop);
}