Display a music emblem in the buddylist when appropriate.

Sat, 15 Sep 2007 10:53:33 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 15 Sep 2007 10:53:33 +0000
changeset 20317
8de19a02aa64
parent 20316
5005aed14e48
child 20318
c2f17c251b01

Display a music emblem in the buddylist when appropriate.

pidgin/gtkblist.c file | annotate | diff | comparison | revisions
--- 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;

mercurial