comparison src/account.c @ 9699:267eab8f3fa4

[gaim-migrate @ 10558] Add a password hint to the "Enter password" dialog. Also added a gaim_account_get_protocol_name() to account.c/.h This change sponsored in part by Daniel Atallah, Jon Oberheide, Mark Doliner, the National Science Foundation, and by viewers like you. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 07 Aug 2004 15:04:15 +0000
parents da88e2cd5c53
children 78da12f2982d
comparison
equal deleted inserted replaced
9698:bd5abccacff2 9699:267eab8f3fa4
725 g_return_val_if_fail(account != NULL, NULL); 725 g_return_val_if_fail(account != NULL, NULL);
726 726
727 return account->protocol_id; 727 return account->protocol_id;
728 } 728 }
729 729
730 const char *
731 gaim_account_get_protocol_name(const GaimAccount *account)
732 {
733 g_return_val_if_fail(account != NULL, NULL);
734
735 GaimPlugin *p = gaim_find_prpl(account->protocol_id);
736
737 return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
738 }
739
730 GaimConnection * 740 GaimConnection *
731 gaim_account_get_connection(const GaimAccount *account) 741 gaim_account_get_connection(const GaimAccount *account)
732 { 742 {
733 g_return_val_if_fail(account != NULL, NULL); 743 g_return_val_if_fail(account != NULL, NULL);
734 744