diff finch/gntblist.c @ 16925:9a568611fa4a

When getting information, show "Information: Retrieving..." before the data reaches from the server. This addresses #387.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 06 May 2007 21:55:07 +0000
parents 49f66fab6b31
children 7e4a22162bb6
line wrap: on
line diff
--- a/finch/gntblist.c	Sun May 06 21:40:29 2007 +0000
+++ b/finch/gntblist.c	Sun May 06 21:55:07 2007 +0000
@@ -819,6 +819,13 @@
 static void
 finch_blist_get_buddy_info_cb(PurpleBuddy *buddy, PurpleBlistNode *selected)
 {
+	/* Add a userinfo with a "Retrieving information", which will later be updated
+	 * when the server finally returns the information. */
+	PurpleNotifyUserInfo *info = purple_notify_user_info_new();
+	purple_notify_user_info_add_pair(info, _("Information"), _("Retrieving..."));
+	purple_notify_userinfo(buddy->account->gc, purple_buddy_get_name(buddy), info, NULL, NULL);
+	purple_notify_user_info_destroy(info);
+
 	serv_get_info(buddy->account->gc, purple_buddy_get_name(buddy));
 }