diff src/protocols/gg/gg.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 83991299705c
children a9cd11fd0d6f
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Sun Jun 01 16:17:15 2003 +0000
+++ b/src/protocols/gg/gg.c	Sun Jun 01 17:40:20 2003 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 6025 2003-05-31 20:55:31Z faceprint $
+ * $Id: gg.c 6047 2003-06-01 17:40:20Z chipx86 $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  * 
@@ -45,6 +45,7 @@
 /* Library from EKG (Eksperymentalny Klient Gadu-Gadu) */
 #include "libgg.h"
 #include "gaim.h"
+#include "accountopt.h"
 #include "multi.h"
 #include "core.h"
 #include "prpl.h"
@@ -54,8 +55,6 @@
 #include "win32dep.h"
 #endif
 
-#define USEROPT_NICK 0
-
 #define GG_CONNECT_STEPS 5
 
 #define AGG_BUF_LEN 1024
@@ -1376,13 +1375,12 @@
 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("Nick:");
-	puo->def   = g_strdup("Gadu-Gadu User");
-	puo->pos   = USEROPT_NICK;
-	prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo);
+	option = gaim_account_option_string_new(_("Nick:"), "nick",
+											"Gadu-Gadu User");
+	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
+											   option);
 
 	my_protocol = plugin;
 }