comparison src/protocols/sametime/sametime.c @ 12088:980c877bd238

[gaim-migrate @ 14385] sf patch #1356873, from Will Thompson (resiak) "gaim_find_buddys_group is a stupid name. gaim_buddy_get_group is not a stupid name." Way to think outside the box! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 14 Nov 2005 22:41:52 +0000
parents de25a063aebe
children d4cd7d443795
comparison
equal deleted inserted replaced
12087:f30a6ad84aff 12088:980c877bd238
732 GaimGroup *group; 732 GaimGroup *group;
733 GList *add; 733 GList *add;
734 734
735 add = g_list_prepend(NULL, &idb); 735 add = g_list_prepend(NULL, &idb);
736 736
737 group = gaim_find_buddys_group(buddy); 737 group = gaim_buddy_get_group(buddy);
738 list = list_ensure(pd, group); 738 list = list_ensure(pd, group);
739 739
740 if(mwAwareList_addAware(list, add)) { 740 if(mwAwareList_addAware(list, add)) {
741 gaim_blist_remove_buddy(buddy); 741 gaim_blist_remove_buddy(buddy);
742 } 742 }
4482 idb->type = mwAware_USER; 4482 idb->type = mwAware_USER;
4483 idb->user = (char *) b->name; 4483 idb->user = (char *) b->name;
4484 idb->community = NULL; 4484 idb->community = NULL;
4485 4485
4486 /* put idb into the list associated with the buddy's group */ 4486 /* put idb into the list associated with the buddy's group */
4487 g = gaim_find_buddys_group(b); 4487 g = gaim_buddy_get_group(b);
4488 l = g_hash_table_lookup(group_sets, g); 4488 l = g_hash_table_lookup(group_sets, g);
4489 l = g_list_prepend(l, idb++); 4489 l = g_list_prepend(l, idb++);
4490 g_hash_table_insert(group_sets, g, l); 4490 g_hash_table_insert(group_sets, g, l);
4491 } 4491 }
4492 4492
4509 struct mwAwareList *list; 4509 struct mwAwareList *list;
4510 4510
4511 GList *rem = g_list_prepend(NULL, &idb); 4511 GList *rem = g_list_prepend(NULL, &idb);
4512 4512
4513 pd = gc->proto_data; 4513 pd = gc->proto_data;
4514 group = gaim_find_buddys_group(buddy); 4514 group = gaim_buddy_get_group(buddy);
4515 list = list_ensure(pd, group); 4515 list = list_ensure(pd, group);
4516 4516
4517 mwAwareList_removeAware(list, rem); 4517 mwAwareList_removeAware(list, rem);
4518 blist_schedule(pd); 4518 blist_schedule(pd);
4519 4519