aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-06 01:33:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:41 +0800
commit7aacf983b32ecac26bc9707697da622b3ef164a3 (patch)
tree754e32b12d21674efa6d55c7a1c8727477197dd4 /e-util/e-alert.c
parentbca1a2c5ea655a8cfacedadf8a9a6c6b62d2b0ab (diff)
downloadgsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.gz
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.bz2
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.lz
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.xz
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.zst
gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-alert.c')
-rw-r--r--e-util/e-alert.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c
index 7df5ca9fe1..20199bc638 100644
--- a/e-util/e-alert.c
+++ b/e-util/e-alert.c
@@ -254,20 +254,30 @@ e_alert_load (const gchar *path)
button->stock_id = stock_id;
xmlFree (tmp);
}
- tmp = (gchar *)xmlGetProp(scan, (const guchar *)"label");
+ tmp = (gchar *) xmlGetProp (
+ scan, (xmlChar *) "label");
if (tmp) {
- label = g_strdup (dgettext (table->translation_domain, tmp));
+ label = g_strdup (
+ dgettext (table->
+ translation_domain,
+ tmp));
button->label = label;
xmlFree (tmp);
}
- tmp = (gchar *)xmlGetProp(scan, (const guchar *)"response");
+ tmp = (gchar *) xmlGetProp (
+ scan, (xmlChar *) "response");
if (tmp) {
- button->response_id = map_response (tmp);
+ button->response_id =
+ map_response (tmp);
xmlFree (tmp);
}
if (stock_id == NULL && label == NULL) {
- g_warning("Error file '%s': missing button details in error '%s'", path, e->id);
+ g_warning (
+ "Error file '%s': "
+ "missing button "
+ "details in error "
+ "'%s'", path, e->id);
g_free (stock_id);
g_free (label);
g_free (button);
@@ -362,7 +372,9 @@ alert_format_string (const gchar *format,
if (id < args->len) {
g_string_append (string, args->pdata[id]);
} else
- g_warning("Error references argument %d not supplied by caller", id);
+ g_warning (
+ "Error references argument %d "
+ "not supplied by caller", id);
format = end + 1;
}
@@ -651,7 +663,8 @@ e_alert_class_init (EAlertClass *class)
static void
e_alert_init (EAlert *alert)
{
- alert->priv = G_TYPE_INSTANCE_GET_PRIVATE (alert, E_TYPE_ALERT, EAlertPrivate);
+ alert->priv = G_TYPE_INSTANCE_GET_PRIVATE (
+ alert, E_TYPE_ALERT, EAlertPrivate);
g_queue_init (&alert->priv->actions);
}