Mercurial > pidgin
comparison finch/gntconv.c @ 25859:103d0d6ffab6
propagate from branch 'im.pidgin.pidgin' (head 1cad4b015e35541ea834da220d2b814b5d5739fb)
to branch 'im.pidgin.pidgin.next.minor' (head ee8cbf9dcaea5349c8f63742fd6b5f7134345c0e)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 01 Dec 2008 17:05:40 +0000 |
parents | 0e08c847517d |
children | 15ae2dea92b3 |
comparison
equal
deleted
inserted
replaced
24575:6476ee291f16 | 25859:103d0d6ffab6 |
---|---|
494 account = purple_conversation_get_account(conv); | 494 account = purple_conversation_get_account(conv); |
495 | 495 |
496 buddies = purple_find_buddies(account, name); | 496 buddies = purple_find_buddies(account, name); |
497 for (cur = buddies; cur != NULL; cur = cur->next) { | 497 for (cur = buddies; cur != NULL; cur = cur->next) { |
498 PurpleBlistNode *node = cur->data; | 498 PurpleBlistNode *node = cur->data; |
499 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) { | 499 if ((node != NULL) && |
500 finch_log_show_contact((PurpleContact *)node->parent); | 500 (purple_blist_node_get_sibling_prev(node) || purple_blist_node_get_sibling_next(node))) { |
501 finch_log_show_contact((PurpleContact *)purple_blist_node_get_parent(node)); | |
501 g_slist_free(buddies); | 502 g_slist_free(buddies); |
502 return; | 503 return; |
503 } | 504 } |
504 } | 505 } |
505 g_slist_free(buddies); | 506 g_slist_free(buddies); |
527 } | 528 } |
528 sub = gnt_menu_new(GNT_MENU_POPUP); | 529 sub = gnt_menu_new(GNT_MENU_POPUP); |
529 gnt_menuitem_set_submenu(item, GNT_MENU(sub)); | 530 gnt_menuitem_set_submenu(item, GNT_MENU(sub)); |
530 | 531 |
531 for (; buds; buds = g_slist_delete_link(buds, buds)) { | 532 for (; buds; buds = g_slist_delete_link(buds, buds)) { |
532 PurpleBlistNode *node = (PurpleBlistNode *)purple_buddy_get_contact((PurpleBuddy *)buds->data); | 533 PurpleBlistNode *node = PURPLE_BLIST_NODE(purple_buddy_get_contact(PURPLE_BUDDY(buds->data))); |
533 for (node = purple_blist_node_get_first_child(node); node != NULL; | 534 for (node = purple_blist_node_get_first_child(node); node != NULL; |
534 node = purple_blist_node_get_sibling_next(node)) { | 535 node = purple_blist_node_get_sibling_next(node)) { |
535 PurpleBuddy *buddy = (PurpleBuddy *)node; | 536 PurpleBuddy *buddy = (PurpleBuddy *)node; |
536 PurpleAccount *account = purple_buddy_get_account(buddy); | 537 PurpleAccount *account = purple_buddy_get_account(buddy); |
537 if (purple_account_is_connected(account)) { | 538 if (purple_account_is_connected(account)) { |