diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-06 01:33:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-06 01:34:28 +0800 |
commit | c6fd77460f5baf88528f5da2ffb99e86a2885ff0 (patch) | |
tree | 377ddb36bc9c907a06d5889123582b2066db42a8 /e-util/e-alert.c | |
parent | 29d8b02c557a65aec4b015b274a830b402da2cfd (diff) | |
download | gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.gz gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.zst gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-alert.c')
-rw-r--r-- | e-util/e-alert.c | 27 |
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); } |