| 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); |