diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-06 01:33:49 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:41 +0800 |
commit | 7aacf983b32ecac26bc9707697da622b3ef164a3 (patch) | |
tree | 754e32b12d21674efa6d55c7a1c8727477197dd4 /e-util/e-alert.c | |
parent | bca1a2c5ea655a8cfacedadf8a9a6c6b62d2b0ab (diff) | |
download | gsoc2013-evolution-7aacf983b32ecac26bc9707697da622b3ef164a3.tar.gz 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.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); } |