comparison src/multi.c @ 1878:75643b9f4261

[gaim-migrate @ 1888] eh. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 22 May 2001 09:05:21 +0000
parents b367beee6448
children fe79493094e7
comparison
equal deleted inserted replaced
1877:a333eccaae93 1878:75643b9f4261
40 40
41 static GtkWidget *acctedit = NULL; 41 static GtkWidget *acctedit = NULL;
42 static GtkWidget *list = NULL; /* the clist of names in the accteditor */ 42 static GtkWidget *list = NULL; /* the clist of names in the accteditor */
43 static GtkWidget *newmod = NULL; /* the dialog for creating a new account */ 43 static GtkWidget *newmod = NULL; /* the dialog for creating a new account */
44 static GtkWidget *newmain = NULL; /* the notebook that holds options */ 44 static GtkWidget *newmain = NULL; /* the notebook that holds options */
45 static struct aim_user tmpusr; 45 static struct aim_user tmpusr = { "", "", "", OPT_USR_REM_PASS, DEFAULT_PROTO,
46 { "", "", "", "", "", "", "" }, NULL, NULL, NULL, NULL, NULL,
47 OPT_USR_REM_PASS, DEFAULT_PROTO, NULL, NULL, NULL };
46 48
47 static void generate_prpl_options(struct aim_user *, GtkWidget *); 49 static void generate_prpl_options(struct aim_user *, GtkWidget *);
48 50
49 struct mod_usr_opt { 51 struct mod_usr_opt {
50 struct aim_user *user; 52 struct aim_user *user;
282 static void set_prot(GtkWidget *opt, int proto) 284 static void set_prot(GtkWidget *opt, int proto)
283 { 285 {
284 struct aim_user *u = gtk_object_get_user_data(GTK_OBJECT(opt)); 286 struct aim_user *u = gtk_object_get_user_data(GTK_OBJECT(opt));
285 if (u && (u->tmp_protocol != proto)) { 287 if (u && (u->tmp_protocol != proto)) {
286 int i; 288 int i;
287 for (i = 0; i < 6; i++) 289 for (i = 0; i < 7; i++)
288 u->proto_opt[i][0] = '\0'; 290 u->proto_opt[i][0] = '\0';
289 u->tmp_protocol = proto; 291 u->tmp_protocol = proto;
290 generate_prpl_options(u, u->main); 292 generate_prpl_options(u, u->main);
291 } else if (tmpusr.tmp_protocol != proto) { 293 } else if (tmpusr.tmp_protocol != proto) {
292 int i; 294 int i;
293 for (i = 0; i < 6; i++) 295 for (i = 0; i < 7; i++)
294 tmpusr.proto_opt[i][0] = '\0'; 296 tmpusr.proto_opt[i][0] = '\0';
295 tmpusr.tmp_protocol = tmpusr.protocol = proto; 297 tmpusr.tmp_protocol = tmpusr.protocol = proto;
296 generate_prpl_options(NULL, newmain); 298 generate_prpl_options(NULL, newmain);
297 } 299 }
298 } 300 }