pidgin/plugins/cap/cap.c

branch
soc.2013.gobjectification
changeset 34740
9401f9b1ca68
parent 34728
8efd73063ecf
child 34864
0e292d8887de
--- a/pidgin/plugins/cap/cap.c	Wed Jul 10 01:42:28 2013 +0530
+++ b/pidgin/plugins/cap/cap.c	Wed Jul 10 01:57:42 2013 +0530
@@ -439,7 +439,7 @@
 /* drawing-tooltip */
 static void drawing_tooltip(PurpleBListNode *node, GString *text, gboolean full) {
 	if(node->type == PURPLE_BLIST_BUDDY_NODE) {
-		PurpleBuddy *buddy = (PurpleBuddy *)node;
+		PurpleBuddy *buddy = PURPLE_BUDDY(node);
 		CapStatistics *stats = get_stats_for(buddy);
 		/* get the probability that this buddy will respond and add to the tooltip */
 		if(stats->prediction->probability >= 0.0) {

mercurial