aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb
diff options
context:
space:
mode:
authorNat Friedman <nat@novell.com>2005-01-23 04:03:45 +0800
committerNat Friedman <nat@src.gnome.org>2005-01-23 04:03:45 +0800
commit16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad (patch)
tree1188172e4f4e5c510708edb2c51763feb111d089 /plugins/bbdb
parent8b7763b464986435b96cbd0f19c531117cc5343f (diff)
downloadgsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar.gz
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar.bz2
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar.lz
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar.xz
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.tar.zst
gsoc2013-evolution-16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad.zip
Check the buddy account name, not alias. Duh. (free_contact_list):
2005-01-22 Nat Friedman <nat@novell.com> * gaimbuddies.c (im_list_contains_buddy): Check the buddy account name, not alias. Duh. (free_contact_list): Removed. svn path=/trunk/; revision=28511
Diffstat (limited to 'plugins/bbdb')
-rw-r--r--plugins/bbdb/ChangeLog6
-rw-r--r--plugins/bbdb/gaimbuddies.c21
2 files changed, 10 insertions, 17 deletions
diff --git a/plugins/bbdb/ChangeLog b/plugins/bbdb/ChangeLog
index d7e76ad592..9e1f60788c 100644
--- a/plugins/bbdb/ChangeLog
+++ b/plugins/bbdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-22 Nat Friedman <nat@novell.com>
+
+ * gaimbuddies.c (im_list_contains_buddy): Check the buddy account
+ name, not alias. Duh.
+ (free_contact_list): Removed.
+
2005-01-13 Nat Friedman <nat@novell.com>
* gaimbuddies.c (bbdb_sync_buddy_list_check): Remove some debug
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index 019686380f..5d9d46e523 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -70,7 +70,6 @@ static GList *bbdb_get_gaim_buddy_list (void);
static char *get_node_text (xmlNodePtr node);
static char *get_buddy_icon_from_setting (xmlNodePtr setting);
static char *get_node_text (xmlNodePtr node);
-static void free_contact_list (GList *contacts);
static void free_buddy_list (GList *blist);
static void parse_buddy_group (xmlNodePtr group, GList **buddies);
static EContactField proto_to_contact_field (const char *proto);
@@ -209,11 +208,11 @@ static gboolean
im_list_contains_buddy (GList *ims, GaimBuddy *b)
{
GList *l;
-
+
for (l = ims; l != NULL; l = l->next) {
char *im = (char *) l->data;
- if (! strcmp (im, b->alias))
+ if (! strcmp (im, b->account_name))
return TRUE;
}
@@ -262,10 +261,8 @@ bbdb_merge_buddy_to_contact (EBook *book, GaimBuddy *b, EContact *c)
}
/* Clean up */
- if (photo != NULL) {
- g_free (photo->data);
- g_free (photo);
- }
+ if (photo != NULL)
+ e_contact_photo_free (photo);
for (l = ims; l != NULL; l = l->next)
g_free ((char *) l->data);
@@ -293,16 +290,6 @@ proto_to_contact_field (const char *proto)
return E_CONTACT_IM_AIM;
}
-static void
-free_contact_list (GList *contacts)
-{
- GList *l;
-
- for (l = contacts; l != NULL; l = l->next)
- g_object_unref (G_OBJECT (l->data));
- g_list_free (contacts);
-}
-
static GList *
bbdb_get_gaim_buddy_list (void)
{