cpw.rekkanoryo.icqxstatus: 5faff0c4: Look at the mood status attribute on a b...
rlaager at pidgin.im
rlaager at pidgin.im
Sun Nov 16 14:20:56 EST 2008
-----------------------------------------------------------------
Revision: 5faff0c46029b1be4305847c0b16ad1b818770fc
Ancestor: 77b1e329c63b0663efe2e73c95874f184f4719e5
Author: rlaager at pidgin.im
Date: 2008-11-16T19:17:27
Branch: im.pidgin.cpw.rekkanoryo.icqxstatus
URL: http://d.pidgin.im/viewmtn/revision/info/5faff0c46029b1be4305847c0b16ad1b818770fc
Modified files:
pidgin/gtkblist.c
ChangeLog:
Look at the mood status attribute on a buddy when picking the emblem.
-------------- next part --------------
============================================================
--- pidgin/gtkblist.c cede637a952d43e945aa9ce507c9972fcbfe69f9
+++ pidgin/gtkblist.c 4ec2dfa8429279b29e22f9666b29134a5337aff4
@@ -3658,8 +3658,12 @@ pidgin_blist_get_emblem(PurpleBlistNode
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);
More information about the Commits
mailing list