comparison finch/gntblist.c @ 17396:a307926a3432

merge of '4e1b2a820428bb70308bc4a0b4ac886b230c9184' and 'fe7784731b59da7b657e704566d81cf3fab87114'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 25 May 2007 03:23:26 +0000
parents 995f31f5432a
children 464840043c66
comparison
equal deleted inserted replaced
17304:9f2407ce504b 17396:a307926a3432
822 PURPLE_CALLBACK(finch_add_chat), group); 822 PURPLE_CALLBACK(finch_add_chat), group);
823 add_custom_action(menu, _("Add Group"), 823 add_custom_action(menu, _("Add Group"),
824 PURPLE_CALLBACK(finch_add_group), group); 824 PURPLE_CALLBACK(finch_add_group), group);
825 } 825 }
826 826
827 static void 827 void finch_retrieve_user_info(PurpleConnection *conn, const char *name)
828 finch_blist_get_buddy_info_cb(PurpleBuddy *buddy, PurpleBlistNode *selected) 828 {
829 {
830 /* Add a userinfo with a "Retrieving information", which will later be updated
831 * when the server finally returns the information. */
832 PurpleNotifyUserInfo *info = purple_notify_user_info_new(); 829 PurpleNotifyUserInfo *info = purple_notify_user_info_new();
833 purple_notify_user_info_add_pair(info, _("Information"), _("Retrieving...")); 830 purple_notify_user_info_add_pair(info, _("Information"), _("Retrieving..."));
834 purple_notify_userinfo(buddy->account->gc, purple_buddy_get_name(buddy), info, NULL, NULL); 831 purple_notify_userinfo(conn, name, info, NULL, NULL);
835 purple_notify_user_info_destroy(info); 832 purple_notify_user_info_destroy(info);
836 833
837 serv_get_info(buddy->account->gc, purple_buddy_get_name(buddy)); 834 serv_get_info(conn, name);
835 }
836
837 static void
838 finch_blist_get_buddy_info_cb(PurpleBuddy *buddy, PurpleBlistNode *selected)
839 {
840 finch_retrieve_user_info(buddy->account->gc, purple_buddy_get_name(buddy));
838 } 841 }
839 842
840 static void 843 static void
841 finch_blist_menu_send_file_cb(PurpleBuddy *buddy, PurpleBlistNode *selected) 844 finch_blist_menu_send_file_cb(PurpleBuddy *buddy, PurpleBlistNode *selected)
842 { 845 {