Mercurial > pidgin
comparison finch/gntblist.c @ 17750:319bcb73eb4e
Use utility functions to get user info. Closes #964.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 24 May 2007 21:15:16 +0000 |
parents | 0d9fba04fc85 |
children | 995f31f5432a |
comparison
equal
deleted
inserted
replaced
17749:5241d388f463 | 17750:319bcb73eb4e |
---|---|
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 { |