changeset 20055:d97c43dbc1ca

Display a music emblem in the buddylist when appropriate.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 15 Sep 2007 10:53:33 +0000
parents 505fc3b20c40
children 25a2c78bff50
files pidgin/gtkblist.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Sep 15 10:52:20 2007 +0000
+++ b/pidgin/gtkblist.c	Sat Sep 15 10:53:33 2007 +0000
@@ -3272,8 +3272,6 @@
 	GdkPixbuf *ret;
 	PurplePresence *p;
 
-
-
 	if(PURPLE_BLIST_NODE_IS_CONTACT(node)) {
 		if(!gtknode->contact_expanded) {
 			buddy = purple_contact_get_priority_buddy((PurpleContact*)node);
@@ -3315,6 +3313,13 @@
 		return ret;
 	}
 
+	if (purple_status_get_attr_string(purple_presence_get_active_status(p), PURPLE_TUNE_TITLE)) {
+		path = g_build_filename(DATADIR, "pixmaps", "pidgin", "emblems", "16", "music.png", NULL);
+		ret = gdk_pixbuf_new_from_file(path, NULL);
+		g_free(path);
+		return ret;
+	}
+
 	prpl = purple_find_prpl(purple_account_get_protocol_id(buddy->account));
 	if (!prpl)
 		return NULL;