Mercurial > pidgin
comparison libpurple/log.c @ 25808:5ebfa814b9e8
Finish off the libpurple updates for the hidden blist structs
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sun, 02 Nov 2008 10:54:00 +0000 |
parents | b789b54c5bb2 |
children | 97cc8cb724a7 |
comparison
equal
deleted
inserted
replaced
25807:e35115192593 | 25808:5ebfa814b9e8 |
---|---|
1950 } | 1950 } |
1951 | 1951 |
1952 set->name = set->normalized_name = name; | 1952 set->name = set->normalized_name = name; |
1953 | 1953 |
1954 /* Search the buddy list to find the account and to determine if this is a buddy. */ | 1954 /* Search the buddy list to find the account and to determine if this is a buddy. */ |
1955 for (gnode = purple_get_blist()->root; !found && gnode != NULL; gnode = gnode->next) | 1955 for (gnode = purple_blist_get_root(); |
1956 !found && gnode != NULL; | |
1957 gnode = purple_blist_node_get_sibling_next(gnode)) | |
1956 { | 1958 { |
1957 if (!PURPLE_BLIST_NODE_IS_GROUP(gnode)) | 1959 if (!PURPLE_BLIST_NODE_IS_GROUP(gnode)) |
1958 continue; | 1960 continue; |
1959 | 1961 |
1960 for (cnode = gnode->child; !found && cnode != NULL; cnode = cnode->next) | 1962 for (cnode = purple_blist_node_get_first_child(gnode); |
1963 !found && cnode != NULL; | |
1964 cnode = purple_blist_node_get_sibling_next(cnode)) | |
1961 { | 1965 { |
1962 if (!PURPLE_BLIST_NODE_IS_CONTACT(cnode)) | 1966 if (!PURPLE_BLIST_NODE_IS_CONTACT(cnode)) |
1963 continue; | 1967 continue; |
1964 | 1968 |
1965 for (bnode = cnode->child; !found && bnode != NULL; bnode = bnode->next) | 1969 for (bnode = purple_blist_node_get_first_child(cnode); |
1970 !found && bnode != NULL; | |
1971 bnode = purple_blist_node_get_sibling_next(bnode)) | |
1966 { | 1972 { |
1967 PurpleBuddy *buddy = (PurpleBuddy *)bnode; | 1973 PurpleBuddy *buddy = (PurpleBuddy *)bnode; |
1968 | 1974 |
1969 if (!strcmp(buddy->name, name)) { | 1975 if (!strcmp(purple_buddy_get_name(buddy), name)) { |
1970 set->account = buddy->account; | 1976 set->account = purple_buddy_get_account(buddy); |
1971 set->buddy = TRUE; | 1977 set->buddy = TRUE; |
1972 found = TRUE; | 1978 found = TRUE; |
1973 } | 1979 } |
1974 } | 1980 } |
1975 } | 1981 } |