aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-05 04:53:10 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:26 +0800
commite7954c3f251aabbf95d099159709c8c66dfedc44 (patch)
tree08b6fbba02f05aa622cd54f45da223ef43066bb3 /mail/em-utils.c
parentdcaf6c52082765c2586a7d35b56b3dc417aa988d (diff)
downloadgsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.gz
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.bz2
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.lz
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.xz
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.zst
gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.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;