Mercurial > pidgin.yaz
changeset 29828:1034b0d09398
Look at the mood status attribute on a buddy when picking the emblem.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 16 Nov 2008 19:17:27 +0000 |
parents | 37be968cd42c |
children | 11cb7f2bb6e8 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Nov 16 19:17:07 2008 +0000 +++ b/pidgin/gtkblist.c Sun Nov 16 19:17:27 2008 +0000 @@ -3658,8 +3658,12 @@ if (prpl_info && prpl_info->list_emblem) name = prpl_info->list_emblem(buddy); - if (name == NULL) - return NULL; + if (name == NULL) { + PurpleStatus *status = purple_presence_get_active_status(p); + name = purple_status_get_attr_string(status, "mood"); + if(!(name && *name)) + return NULL; + } filename = g_strdup_printf("%s.png", name);