Mercurial > pidgin.yaz
diff src/protocols/toc/toc.c @ 5638:0bdfa28c678e
[gaim-migrate @ 6047]
We're slowly killing off multi.h. The proto_user_split and proto_user_opt
have been replaced with GaimAccountOption and GaimAccountUserSplit
structures, which of course have an API. The account dialog is being
rewritten as well, and will soon allow you to add and modify accounts again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 17:40:20 +0000 |
parents | 4fa8ca4f4259 |
children | 0a0116686d51 |
line wrap: on
line diff
--- a/src/protocols/toc/toc.c Sun Jun 01 16:17:15 2003 +0000 +++ b/src/protocols/toc/toc.c Sun Jun 01 17:40:20 2003 +0000 @@ -44,6 +44,7 @@ #include <sys/types.h> #include <sys/stat.h> #include "prpl.h" +#include "accountopt.h" #include "multi.h" #include "gaim.h" #include "proxy.h" @@ -2074,19 +2075,15 @@ static void __init_plugin(GaimPlugin *plugin) { - struct proto_user_opt *puo; + GaimAccountOption *option; - puo = g_new0(struct proto_user_opt, 1); - puo->label = g_strdup(_("TOC Host:")); - puo->def = g_strdup("toc.oscar.aol.com"); - puo->pos = USEROPT_AUTH; - prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); + option = gaim_account_option_string_new(_("TOC Host"), "server", TOC_HOST); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); - puo = g_new0(struct proto_user_opt, 1); - puo->label = g_strdup(_("TOC Port:")); - puo->def = g_strdup("9898"); - puo->pos = USEROPT_AUTHPORT; - prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); + option = gaim_account_option_int_new(_("TOC Host"), "port", TOC_PORT); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); my_protocol = plugin; }