pidgin/plugins/cap/cap.c

branch
soc.2013.gobjectification
changeset 34740
9401f9b1ca68
parent 34728
8efd73063ecf
child 34864
0e292d8887de
equal deleted inserted replaced
34739:7d507b8b9f92 34740:9401f9b1ca68
437 } 437 }
438 438
439 /* drawing-tooltip */ 439 /* drawing-tooltip */
440 static void drawing_tooltip(PurpleBListNode *node, GString *text, gboolean full) { 440 static void drawing_tooltip(PurpleBListNode *node, GString *text, gboolean full) {
441 if(node->type == PURPLE_BLIST_BUDDY_NODE) { 441 if(node->type == PURPLE_BLIST_BUDDY_NODE) {
442 PurpleBuddy *buddy = (PurpleBuddy *)node; 442 PurpleBuddy *buddy = PURPLE_BUDDY(node);
443 CapStatistics *stats = get_stats_for(buddy); 443 CapStatistics *stats = get_stats_for(buddy);
444 /* get the probability that this buddy will respond and add to the tooltip */ 444 /* get the probability that this buddy will respond and add to the tooltip */
445 if(stats->prediction->probability >= 0.0) { 445 if(stats->prediction->probability >= 0.0) {
446 g_string_append_printf(text, "\n<b>%s</b> %3.0f %%", _("Response Probability:"), 446 g_string_append_printf(text, "\n<b>%s</b> %3.0f %%", _("Response Probability:"),
447 100 * stats->prediction->probability); 447 100 * stats->prediction->probability);

mercurial