aboutsummaryrefslogtreecommitdiffstats
path: root/libevolution-utils/e-alert.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 /libevolution-utils/e-alert.c
parent7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff)
downloadgsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'libevolution-utils/e-alert.c')
-rw-r--r--libevolution-utils/e-alert.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libevolution-utils/e-alert.c b/libevolution-utils/e-alert.c
index 7d3b5e717f..5a08e07122 100644
--- a/libevolution-utils/e-alert.c
+++ b/libevolution-utils/e-alert.c
@@ -172,19 +172,19 @@ e_alert_load (const gchar *path)
struct _e_alert_table *table;
gchar *tmp;
- d(printf("loading error file %s\n", path));
+ d (printf ("loading error file %s\n", path));
doc = e_xml_parse_file (path);
if (doc == NULL) {
- g_warning("Error file '%s' not found", path);
+ g_warning ("Error file '%s' not found", path);
return;
}
root = xmlDocGetRootElement (doc);
if (root == NULL
- || strcmp((gchar *)root->name, "error-list") != 0
- || (tmp = (gchar *)xmlGetProp(root, (const guchar *)"domain")) == NULL) {
- g_warning("Error file '%s' invalid format", path);
+ || strcmp ((gchar *) root->name, "error-list") != 0
+ || (tmp = (gchar *) xmlGetProp (root, (const guchar *)"domain")) == NULL) {
+ g_warning ("Error file '%s' invalid format", path);
xmlFreeDoc (doc);
return;
}
@@ -218,8 +218,8 @@ e_alert_load (const gchar *path)
xmlFree (tmp);
for (error = root->children; error; error = error->next) {
- if (!strcmp((gchar *)error->name, "error")) {
- tmp = (gchar *)xmlGetProp(error, (const guchar *)"id");
+ if (!strcmp ((gchar *) error->name, "error")) {
+ tmp = (gchar *) xmlGetProp (error, (const guchar *)"id");
if (tmp == NULL)
continue;
@@ -229,39 +229,39 @@ e_alert_load (const gchar *path)
xmlFree (tmp);
lastbutton = (EAlertButton *) &e->buttons;
- tmp = (gchar *)xmlGetProp(error, (const guchar *)"type");
+ tmp = (gchar *) xmlGetProp (error, (const guchar *)"type");
e->message_type = map_type (tmp);
if (tmp)
xmlFree (tmp);
- tmp = (gchar *)xmlGetProp(error, (const guchar *)"default");
+ tmp = (gchar *) xmlGetProp (error, (const guchar *)"default");
if (tmp) {
e->default_response = map_response (tmp);
xmlFree (tmp);
}
for (scan = error->children; scan; scan = scan->next) {
- if (!strcmp((gchar *)scan->name, "primary")) {
+ if (!strcmp ((gchar *) scan->name, "primary")) {
if ((tmp = (gchar *) xmlNodeGetContent (scan))) {
e->primary_text = g_strdup (
dgettext (table->
translation_domain, tmp));
xmlFree (tmp);
}
- } else if (!strcmp((gchar *)scan->name, "secondary")) {
+ } else if (!strcmp ((gchar *) scan->name, "secondary")) {
if ((tmp = (gchar *) xmlNodeGetContent (scan))) {
e->secondary_text = g_strdup (
dgettext (table->
translation_domain, tmp));
xmlFree (tmp);
}
- } else if (!strcmp((gchar *)scan->name, "button")) {
+ } else if (!strcmp ((gchar *) scan->name, "button")) {
EAlertButton *button;
gchar *label = NULL;
gchar *stock_id = NULL;
button = g_new0 (EAlertButton, 1);
- tmp = (gchar *)xmlGetProp(scan, (const guchar *)"stock");
+ tmp = (gchar *) xmlGetProp (scan, (const guchar *)"stock");
if (tmp) {
stock_id = g_strdup (tmp);
button->stock_id = stock_id;