aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-05 04:53:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-06-09 01:14:48 +0800
commitf014ab82c81078d60cb1df8c986305c2cc9948c2 (patch)
treec3bde4e5da923c9ee082fcb994b10c2ce2f61dc2 /mail/em-utils.c
parent7428fc93d58921bab9968a999172b843af2a2244 (diff)
downloadgsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.gz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.zst
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c37
1 files changed, 28 insertions, 9 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 73c4d9be61..7d11f5e9bf 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1661,16 +1661,24 @@ search_address_in_addressbooks (const gchar *address,
book = e_book_new (source, &err);
if (book == NULL) {
- if (err && g_error_matches (err, E_BOOK_ERROR, E_BOOK_ERROR_CANCELLED)) {
+ if (err && g_error_matches (
+ err, E_BOOK_ERROR,
+ E_BOOK_ERROR_CANCELLED)) {
stop = TRUE;
} else if (err) {
- gchar *source_uid = g_strdup (e_source_peek_uid (source));
+ gchar *source_uid;
- g_hash_table_insert (emu_broken_books_hash, source_uid, source_uid);
+ source_uid = g_strdup (
+ e_source_peek_uid (source));
+
+ g_hash_table_insert (
+ emu_broken_books_hash,
+ source_uid, source_uid);
g_warning (
"%s: Unable to create addressbook '%s': %s",
- G_STRFUNC, e_source_peek_name (source),
+ G_STRFUNC,
+ e_source_peek_name (source),
err->message);
}
g_clear_error (&err);
@@ -1678,16 +1686,24 @@ search_address_in_addressbooks (const gchar *address,
g_object_unref (book);
book = NULL;
- if (err && g_error_matches (err, E_BOOK_ERROR, E_BOOK_ERROR_CANCELLED)) {
+ if (err && g_error_matches (
+ err, E_BOOK_ERROR,
+ E_BOOK_ERROR_CANCELLED)) {
stop = TRUE;
} else if (err) {
- gchar *source_uid = g_strdup (e_source_peek_uid (source));
+ gchar *source_uid;
+
+ source_uid = g_strdup (
+ e_source_peek_uid (source));
- g_hash_table_insert (emu_broken_books_hash, source_uid, source_uid);
+ g_hash_table_insert (
+ emu_broken_books_hash,
+ source_uid, source_uid);
g_warning (
"%s: Unable to open addressbook '%s': %s",
- G_STRFUNC, e_source_peek_name (source),
+ G_STRFUNC,
+ e_source_peek_name (source),
err->message);
}
g_clear_error (&err);
@@ -1699,7 +1715,10 @@ search_address_in_addressbooks (const gchar *address,
if (book && !stop && e_book_get_contacts (book, query, &contacts, &err)) {
if (contacts != NULL) {
if (!found_any) {
- g_hash_table_insert (contact_cache, g_strdup (lowercase_addr), book);
+ g_hash_table_insert (
+ contact_cache,
+ g_strdup (lowercase_addr),
+ book);
}
found_any = TRUE;