aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-20 18:56:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-20 20:06:19 +0800
commit5d0878967ee21a039ef599222b1cf3eb606354d4 (patch)
tree790cfcbf63fea7292740f182dd612ab20244f6e8 /e-util/e-alert.c
parentf5f2132d60cdd1884c6343f759aadfd38a159e04 (diff)
downloadgsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.gz
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.zst
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-alert.c')
-rw-r--r--e-util/e-alert.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c
index 3c7aca3ee1..c6b5357923 100644
--- a/e-util/e-alert.c
+++ b/e-util/e-alert.c
@@ -69,10 +69,18 @@ static struct _e_alert_button default_ok_button = {
};
static struct _e_alert default_alerts[] = {
- { GTK_DIALOG_MODAL, "error", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", "{1}", NULL, FALSE, &default_ok_button },
- { GTK_DIALOG_MODAL, "error-primary", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", NULL, NULL, FALSE, &default_ok_button },
- { GTK_DIALOG_MODAL, "warning", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", "{1}", NULL, FALSE, &default_ok_button },
- { GTK_DIALOG_MODAL, "warning-primary", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", NULL, NULL, FALSE, &default_ok_button },
+ { GTK_DIALOG_MODAL, "error", 3, GTK_RESPONSE_OK,
+ N_("Evolution Error"), "{0}", "{1}", NULL, FALSE,
+ &default_ok_button },
+ { GTK_DIALOG_MODAL, "error-primary", 3, GTK_RESPONSE_OK,
+ N_("Evolution Error"), "{0}", NULL, NULL, FALSE,
+ &default_ok_button },
+ { GTK_DIALOG_MODAL, "warning", 1, GTK_RESPONSE_OK,
+ N_("Evolution Warning"), "{0}", "{1}", NULL, FALSE,
+ &default_ok_button },
+ { GTK_DIALOG_MODAL, "warning-primary", 1, GTK_RESPONSE_OK,
+ N_("Evolution Warning"), "{0}", NULL, NULL, FALSE,
+ &default_ok_button },
};
/* ********************************************************************** */
@@ -150,12 +158,14 @@ struct _EAlertPrivate
/*
XML format:
- <error id="error-id" type="info|warning|question|error"? response="default_response"? modal="true"? >
+ <error id="error-id" type="info|warning|question|error"?
+ response="default_response"? modal="true"? >
<title>Window Title</title>?
<primary>Primary error text.</primary>?
<secondary>Secondary error text.</secondary>?
<help uri="help uri"/> ?
- <button stock="stock-button-id"? label="button label"? response="response_id"? /> *
+ <button stock="stock-button-id"? label="button label"?
+ response="response_id"? /> *
</error>
The tool e-error-tool is used to extract the translatable strings for
@@ -335,7 +345,9 @@ e_alert_load_tables(void)
table->domain = "builtin";
table->alerts = g_hash_table_new(g_str_hash, g_str_equal);
for (i = 0; i < G_N_ELEMENTS (default_alerts); i++)
- g_hash_table_insert(table->alerts, (gpointer) default_alerts[i].id, &default_alerts[i]);
+ g_hash_table_insert (
+ table->alerts, (gpointer)
+ default_alerts[i].id, &default_alerts[i]);
g_hash_table_insert(alert_table, (gpointer) table->domain, table);
/* look for installed alert tables */
@@ -544,7 +556,10 @@ e_alert_append_text_escaped (GString *out, const gchar *text)
}
static void
-e_alert_format_string (GString *out, const gchar *fmt, GPtrArray *args, gboolean escape_args)
+e_alert_format_string (GString *out,
+ const gchar *fmt,
+ GPtrArray *args,
+ gboolean escape_args)
{
const gchar *end, *newstart;
gint id;