changeset 7994:d5874c4f19c5

[gaim-migrate @ 8671] The buddy pounce notification dialog now shows the person's alias instead of their screenname, if available. This is consistent with almost every other part of gaim. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 04 Jan 2004 22:06:21 +0000
parents 495d3dbb4e84
children 87d3260f961a
files src/gtkpounce.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Sun Jan 04 22:04:24 2004 +0000
+++ b/src/gtkpounce.c	Sun Jan 04 22:06:21 2004 +0000
@@ -767,11 +767,17 @@
 {
 	GaimConversation *conv;
 	GaimAccount *account;
+	GaimBuddy *buddy;
 	const char *pouncee;
+	const char *alias;
 
 	pouncee = gaim_pounce_get_pouncee(pounce);
 	account = gaim_pounce_get_pouncer(pounce);
 
+	buddy = gaim_find_buddy(account, pouncee);
+
+	alias = gaim_get_buddy_alias(buddy);
+
 	if (gaim_pounce_action_is_enabled(pounce, "open-window")) {
 		conv = gaim_find_conversation_with_account(pouncee, account);
 
@@ -792,7 +798,7 @@
 				   (events & GAIM_POUNCE_IDLE) ? _("%s has become idle") :
 				   (events & GAIM_POUNCE_AWAY) ? _("%s has gone away.") :
 				   _("Unknown pounce event. Please report this!"),
-				   pouncee);
+				   alias);
 
 		gaim_notify_info(NULL, NULL, tmp, NULL);
 	}