Mercurial > pidgin.yaz
diff src/blist.h @ 9620:c001be3c330e
[gaim-migrate @ 10464]
Changes to those get_alias functions in blist.c from
Christopher (siege) O'Brien:
Renames gaim_get_buddy_alias to gaim_buddy_get_alias
Renames gaim_get_buddy_alias_only to
_gaim_buddy_get_alias_only
Adds function gaim_buddy_get_contact_alias, which looks
up a buddy's appropriate display name by order of:
buddy alias; contact alias; server alias; buddy name.
Note that the buddy alias is still the top-priority.
Changed conversation.c to use _get_contact_alias rather
than _get_alias
The end result of this is that aliasing the contact
will result in conversations with any of that contact's
buddies using the contact alias. This allows people
like myself to no longer have to alias each buddy to
the same alias in order to achieve the same effect.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 31 Jul 2004 21:29:40 +0000 |
parents | eae7e049d639 |
children | 8ad07c6f6522 |
line wrap: on
line diff
--- a/src/blist.h Sat Jul 31 20:48:03 2004 +0000 +++ b/src/blist.h Sat Jul 31 21:29:40 2004 +0000 @@ -529,16 +529,30 @@ * @param buddy The buddy whose name will be returned. * @return The alias (if set), server alias (if option is set), or NULL. */ -const char *gaim_get_buddy_alias_only(GaimBuddy *buddy); +const char *gaim_buddy_get_alias_only(GaimBuddy *buddy); /** - * Returns the correct name to display for a buddy. + * Returns the correct name to display for a buddy, taking the contact alias + * into account. In order of precedence: the buddy's alias; the buddy's + * contact alias; the buddy's server alias; the buddy's user name. + * + * @param buddy The buddy whose name will be returned + * @return The appropriate name or alias, or "Unknown" + * + */ +const char *gaim_buddy_get_contact_alias(GaimBuddy *buddy); + + +/** + * Returns the correct name to display for a buddy. In order of precedence: + * the buddy's alias; the buddy's server alias; the buddy's contact alias; + * the buddy's user name. * * @param buddy The buddy whose name will be returned. - * @return The alias (if set), server alias (if option is set), screenname, or "Unknown" + * @return The appropriate name or alias, or "Unknown" */ -const char *gaim_get_buddy_alias(GaimBuddy *buddy); +const char *gaim_buddy_get_alias(GaimBuddy *buddy); /** * Returns the correct name to display for a blist chat.