comparison src/blist.c @ 6965:d4b4229bcd21

[gaim-migrate @ 7512] fix sort by log size and sort by status, and allow dragging of entire contacts into expanded contacts, like one would expect committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 25 Sep 2003 03:30:07 +0000
parents 13da9fe5f213
children a83687eeb713
comparison
equal deleted inserted replaced
6964:88207c8a4b20 6965:d4b4229bcd21
882 for(bnode = cnode->child; bnode; bnode = bnode->next) 882 for(bnode = cnode->child; bnode; bnode = bnode->next)
883 ops->update(gaimbuddylist, bnode); 883 ops->update(gaimbuddylist, bnode);
884 884
885 if (save) 885 if (save)
886 gaim_blist_save(); 886 gaim_blist_save();
887 }
888
889 void gaim_blist_merge_contact(GaimContact *source, GaimContact *target)
890 {
891 GaimBlistNode *sourcenode = (GaimBlistNode*)source;
892 GaimBlistNode *targetnode = (GaimBlistNode*)target;
893 GaimBlistNode *child, *child2;
894
895 if(source == target)
896 return;
897
898 child = sourcenode->child;
899
900 while(child) {
901 child2 = child;
902 child = child->next;
903 if(GAIM_BLIST_NODE_IS_BUDDY(child2))
904 gaim_blist_add_buddy((GaimBuddy*)child2, target, NULL,
905 gaim_blist_get_last_child(targetnode));
906 }
887 } 907 }
888 908
889 void gaim_blist_add_group (GaimGroup *group, GaimBlistNode *node) 909 void gaim_blist_add_group (GaimGroup *group, GaimBlistNode *node)
890 { 910 {
891 struct gaim_blist_ui_ops *ops; 911 struct gaim_blist_ui_ops *ops;