aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/gaimbuddies.c
diff options
context:
space:
mode:
authorDevashish Sharma <dsharma@src.gnome.org>2006-01-23 19:32:11 +0800
committerDevashish Sharma <dsharma@src.gnome.org>2006-01-23 19:32:11 +0800
commitdd5f09119558ec41adf7f519e5ca0aa347f83e4c (patch)
tree27492f0d83f675f94a9dd2d3a1c4ab21ca4ae1cd /plugins/bbdb/gaimbuddies.c
parent7b6cb9acabb2395294ce70e12df6ec4ac5416b67 (diff)
downloadgsoc2013-evolution-dd5f09119558ec41adf7f519e5ca0aa347f83e4c.tar.gz
gsoc2013-evolution-dd5f09119558ec41adf7f519e5ca0aa347f83e4c.tar.zst
gsoc2013-evolution-dd5f09119558ec41adf7f519e5ca0aa347f83e4c.zip
Added an option to select a different addressbook for gaim buddies. Earlier it used the same addressbook as that used by Automatic Contacts.
svn path=/trunk/; revision=31277
Diffstat (limited to 'plugins/bbdb/gaimbuddies.c')
-rw-r--r--plugins/bbdb/gaimbuddies.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index 54364bfd59..d4d104bbf1 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -61,7 +61,7 @@ typedef struct {
} GaimBuddy;
/* Defined in bbdb.c */
-EBook *bbdb_open_addressbook (void);
+EBook *bbdb_open_addressbook (int type);
/* Forward declarations for this file. */
void bbdb_sync_buddy_list (void);
@@ -125,7 +125,7 @@ bbdb_sync_buddy_list (void)
return;
/* Open the addressbook */
- book = bbdb_open_addressbook ();
+ book = bbdb_open_addressbook (GAIM_ADDRESSBOOK);
if (book == NULL) {
free_buddy_list (blist);
return;
@@ -141,7 +141,7 @@ bbdb_sync_buddy_list (void)
EContact *c;
if (b->alias == NULL || strlen (b->alias) == 0)
- continue;
+ b->alias = b->account_name;
/* 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);