diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-27 05:19:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-27 05:19:41 +0800 |
commit | 0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110 (patch) | |
tree | d282033033e0fd8bb3c1632084d4c09f90dbbb2b /addressbook/importers | |
parent | 3f213cfbef9142d117fbd9219cf12cbecc39f59e (diff) | |
download | gsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.tar.gz gsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.tar.zst gsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'addressbook/importers')
-rw-r--r-- | addressbook/importers/evolution-vcard-importer.c | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/addressbook/importers/evolution-vcard-importer.c b/addressbook/importers/evolution-vcard-importer.c index 59aba913d2..1bcd6d6540 100644 --- a/addressbook/importers/evolution-vcard-importer.c +++ b/addressbook/importers/evolution-vcard-importer.c @@ -739,28 +739,40 @@ preview_contact (EWebViewPreview *preview, EContact *contact) g_date_set_dmy (&gd, dt->day, dt->month, dt->year); g_date_to_struct_tm (&gd, &tm); - value = e_datetime_format_format_tm ("addressbook", "table", DTFormatKindDate, &tm); + value = e_datetime_format_format_tm ( + "addressbook", "table", + DTFormatKindDate, &tm); if (value) { - e_web_view_preview_add_section (preview, e_contact_pretty_name (field), value); + e_web_view_preview_add_section ( + preview, + e_contact_pretty_name (field), + value); had_value = TRUE; } g_free (value); e_contact_date_free (dt); } - } else if (field == E_CONTACT_IS_LIST || field == E_CONTACT_WANTS_HTML || field == E_CONTACT_LIST_SHOW_ADDRESSES) { + } else if (field == E_CONTACT_IS_LIST || + field == E_CONTACT_WANTS_HTML || + field == E_CONTACT_LIST_SHOW_ADDRESSES) { if (e_contact_get (contact, field)) { - e_web_view_preview_add_text (preview, e_contact_pretty_name (field)); + e_web_view_preview_add_text ( + preview, e_contact_pretty_name (field)); had_value = TRUE; } - } else if (field == E_CONTACT_ADDRESS_HOME || field == E_CONTACT_ADDRESS_WORK || field == E_CONTACT_ADDRESS_OTHER) { + } else if (field == E_CONTACT_ADDRESS_HOME || + field == E_CONTACT_ADDRESS_WORK || + field == E_CONTACT_ADDRESS_OTHER) { EContactAddress *addr = e_contact_get (contact, field); if (addr) { gboolean have = FALSE; #define add_it(_what) \ if (addr->_what && *addr->_what) { \ - e_web_view_preview_add_section (preview, have ? NULL : e_contact_pretty_name (field), addr->_what); \ + e_web_view_preview_add_section ( \ + preview, have ? NULL : \ + e_contact_pretty_name (field), addr->_what); \ have = TRUE; \ had_value = TRUE; \ } @@ -777,10 +789,14 @@ preview_contact (EWebViewPreview *preview, EContact *contact) e_contact_address_free (addr); } - } else if (field == E_CONTACT_IM_AIM || field == E_CONTACT_IM_GROUPWISE || - field == E_CONTACT_IM_JABBER || field == E_CONTACT_IM_YAHOO || - field == E_CONTACT_IM_MSN || field == E_CONTACT_IM_ICQ || - field == E_CONTACT_IM_GADUGADU || field == E_CONTACT_IM_SKYPE || + } else if (field == E_CONTACT_IM_AIM || + field == E_CONTACT_IM_GROUPWISE || + field == E_CONTACT_IM_JABBER || + field == E_CONTACT_IM_YAHOO || + field == E_CONTACT_IM_MSN || + field == E_CONTACT_IM_ICQ || + field == E_CONTACT_IM_GADUGADU || + field == E_CONTACT_IM_SKYPE || field == E_CONTACT_EMAIL) { GList *attrs, *a; gboolean have = FALSE; @@ -797,7 +813,9 @@ preview_contact (EWebViewPreview *preview, EContact *contact) const gchar *str = value->data; if (str && *str) { - e_web_view_preview_add_section (preview, have ? NULL : e_contact_pretty_name (field), str); + e_web_view_preview_add_section ( + preview, have ? NULL : + e_contact_pretty_name (field), str); have = TRUE; had_value = TRUE; } @@ -921,7 +939,9 @@ evolution_contact_importer_get_preview_widget (const GList *contacts) selection = gtk_tree_view_get_selection (tree_view); gtk_tree_selection_select_iter (selection, &iter); - g_signal_connect (selection, "changed", G_CALLBACK (preview_selection_changed_cb), preview); + g_signal_connect ( + selection, "changed", + G_CALLBACK (preview_selection_changed_cb), preview); preview_selection_changed_cb (selection, E_WEB_VIEW_PREVIEW (preview)); |