| 514 return ret; |
514 return ret; |
| 515 } |
515 } |
| 516 |
516 |
| 517 static void |
517 static void |
| 518 add_account_to_combo(GntWidget *combo, PurpleAccount *account) { |
518 add_account_to_combo(GntWidget *combo, PurpleAccount *account) { |
| |
519 PurpleContactInfo *info = PURPLE_CONTACT_INFO(account); |
| 519 char *text = NULL; |
520 char *text = NULL; |
| 520 |
521 |
| 521 text = g_strdup_printf("%s (%s)", |
522 text = g_strdup_printf("%s (%s)", |
| 522 purple_account_get_username(account), |
523 purple_contact_info_get_username(info), |
| 523 purple_account_get_protocol_name(account)); |
524 purple_account_get_protocol_name(account)); |
| 524 gnt_combo_box_add_data(GNT_COMBO_BOX(combo), account, text); |
525 gnt_combo_box_add_data(GNT_COMBO_BOX(combo), account, text); |
| 525 g_free(text); |
526 g_free(text); |
| 526 } |
527 } |
| 527 |
528 |