diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-07-01 12:07:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-08-13 23:27:51 +0800 |
commit | f59681796df8fe0138a1754abbe8ec781bc1535e (patch) | |
tree | 0ced0c119ffed095713d7f64732686df9b2d9152 /plugins/bbdb | |
parent | bf4a1a13e3295deefc4031a446627ff9b1c95c7a (diff) | |
download | gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.gz gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.zst gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/bbdb')
-rw-r--r-- | plugins/bbdb/gaimbuddies.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c index 1becdee0ac..7e42066638 100644 --- a/plugins/bbdb/gaimbuddies.c +++ b/plugins/bbdb/gaimbuddies.c @@ -61,18 +61,24 @@ typedef struct { } GaimBuddy; /* Forward declarations for this file. */ -static gboolean bbdb_merge_buddy_to_contact (EBookClient *client, GaimBuddy *b, EContact *c); -static GList *bbdb_get_gaim_buddy_list (void); -static gchar *get_node_text (xmlNodePtr node); -static gchar *get_buddy_icon_from_setting (xmlNodePtr setting); -static void free_buddy_list (GList *blist); -static void parse_buddy_group (xmlNodePtr group, GList **buddies, GSList *blocked); -static EContactField proto_to_contact_field (const gchar *proto); +static gboolean bbdb_merge_buddy_to_contact (EBookClient *client, + GaimBuddy *buddy, + EContact *contact); +static GList * bbdb_get_gaim_buddy_list (void); +static gchar * get_node_text (xmlNodePtr node); +static gchar * get_buddy_icon_from_setting (xmlNodePtr setting); +static void free_buddy_list (GList *blist); +static void parse_buddy_group (xmlNodePtr group, + GList **buddies, + GSList *blocked); +static EContactField + proto_to_contact_field (const gchar *proto); static gchar * get_buddy_filename (void) { - return g_build_path ("/", g_get_home_dir (), ".purple/blist.xml", NULL); + return g_build_filename ( + g_get_home_dir (), ".purple", "blist.xml", NULL); } static gchar * @@ -229,10 +235,12 @@ bbdb_sync_buddy_list_in_thread (gpointer data) } /* Look for an exact match full name == buddy alias */ - query = e_book_query_field_test (E_CONTACT_FULL_NAME, E_BOOK_QUERY_IS, b->alias); + query = e_book_query_field_test ( + E_CONTACT_FULL_NAME, E_BOOK_QUERY_IS, b->alias); query_string = e_book_query_to_string (query); e_book_query_unref (query); - if (!e_book_client_get_contacts_sync (std->client, query_string, &contacts, NULL, NULL)) { + if (!e_book_client_get_contacts_sync ( + std->client, query_string, &contacts, NULL, NULL)) { g_free (query_string); continue; } |