| 2514 |
2517 |
| 2515 g_return_if_fail(MSIM_SESSION_VALID(session)); |
2518 g_return_if_fail(MSIM_SESSION_VALID(session)); |
| 2516 |
2519 |
| 2517 /* TODO: if (full), do something different */ |
2520 /* TODO: if (full), do something different */ |
| 2518 |
2521 |
| 2519 /* Useful to identify the account the tooltip refers to. Other prpls show this. */ |
2522 /* Useful to identify the account the tooltip refers to. |
| 2520 purple_notify_user_info_add_pair(user_info, _("User Name"), |
2523 * Other prpls show this. */ |
| 2521 (purple_blist_node_get_string(&buddy->node, "UserName"))); |
2524 str = purple_blist_node_get_string(&buddy->node, "UserName"); |
| |
2525 if (str) |
| |
2526 purple_notify_user_info_add_pair(user_info, _("User Name"), str); |
| 2522 |
2527 |
| 2523 /* a/s/l...the vitals */ |
2528 /* a/s/l...the vitals */ |
| 2524 purple_notify_user_info_add_pair(user_info, _("Age"), |
2529 n = purple_blist_node_get_int(&buddy->node, "Age"); |
| 2525 g_strdup_printf("%d", purple_blist_node_get_int(&buddy->node, "Age"))); |
2530 if (n) |
| 2526 |
2531 purple_notify_user_info_add_pair(user_info, _("Age"), |
| 2527 purple_notify_user_info_add_pair(user_info, _("Gender"), |
2532 g_strdup_printf("%d", n)); |
| 2528 (purple_blist_node_get_string(&buddy->node, "Gender"))); |
2533 |
| 2529 |
2534 str = purple_blist_node_get_string(&buddy->node, "Gender"); |
| 2530 purple_notify_user_info_add_pair(user_info, _("Location"), |
2535 if (str) |
| 2531 (purple_blist_node_get_string(&buddy->node, "Location"))); |
2536 purple_notify_user_info_add_pair(user_info, _("Gender"), str); |
| |
2537 |
| |
2538 str = purple_blist_node_get_string(&buddy->node, "Location"); |
| |
2539 if (str) |
| |
2540 purple_notify_user_info_add_pair(user_info, _("Location"), str); |
| 2532 |
2541 |
| 2533 /* Other information */ |
2542 /* Other information */ |
| 2534 if (purple_blist_node_get_string(&buddy->node, "Headline")) |
2543 str = purple_blist_node_get_string(&buddy->node, "Headline"); |
| 2535 purple_notify_user_info_add_pair(user_info, _("Headline"), |
2544 if (str) |
| 2536 (purple_blist_node_get_string(&buddy->node, "Headline"))); |
2545 purple_notify_user_info_add_pair(user_info, _("Headline"), str); |
| 2537 |
2546 |
| 2538 purple_notify_user_info_add_pair(user_info, _("Song"), |
2547 str = purple_blist_node_get_string(&buddy->node, "BandName"); |
| |
2548 str2 = purple_blist_node_get_string(&buddy->node, "SongName"); |
| |
2549 if (str || str2) |
| |
2550 purple_notify_user_info_add_pair(user_info, _("Song"), |
| 2539 g_strdup_printf("%s - %s", |
2551 g_strdup_printf("%s - %s", |
| 2540 purple_blist_node_get_string(&buddy->node, "BandName"), |
2552 str ? str : _("Unknown Artist"), |
| 2541 purple_blist_node_get_string(&buddy->node, "SongName"))); |
2553 str2 ? str2 : _("Unknown Song"))); |
| 2542 |
2554 |
| 2543 purple_notify_user_info_add_pair(user_info, _("Total Friends"), |
2555 n = purple_blist_node_get_int(&buddy->node, "TotalFriends"); |
| 2544 g_strdup_printf("%d", purple_blist_node_get_int(&buddy->node, "TotalFriends"))); |
2556 if (n) |
| |
2557 purple_notify_user_info_add_pair(user_info, _("Total Friends"), |
| |
2558 g_strdup_printf("%d", n)); |
| 2545 |
2559 |
| 2546 } |
2560 } |
| 2547 } |
2561 } |
| 2548 |
2562 |
| 2549 /** Callbacks called by Purple, to access this plugin. */ |
2563 /** Callbacks called by Purple, to access this plugin. */ |