Mercurial > pidgin.yaz
comparison src/multi.c @ 2628:4054a0849461
[gaim-migrate @ 2641]
forgot about this part.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 27 Oct 2001 02:49:01 +0000 |
parents | f119632012bc |
children | ddfd4580a0e8 |
comparison
equal
deleted
inserted
replaced
2627:f119632012bc | 2628:4054a0849461 |
---|---|
245 } | 245 } |
246 a = u->user; | 246 a = u->user; |
247 | 247 |
248 a->options = u->options; | 248 a->options = u->options; |
249 a->protocol = u->protocol; | 249 a->protocol = u->protocol; |
250 txt = gtk_entry_get_text(GTK_ENTRY(u->name)); | |
251 g_snprintf(a->username, sizeof(a->username), "%s", txt); | |
250 txt = gtk_entry_get_text(GTK_ENTRY(u->pass)); | 252 txt = gtk_entry_get_text(GTK_ENTRY(u->pass)); |
251 if (a->options & OPT_USR_REM_PASS) | 253 if (a->options & OPT_USR_REM_PASS) |
252 g_snprintf(a->password, sizeof(a->password), "%s", txt); | 254 g_snprintf(a->password, sizeof(a->password), "%s", txt); |
253 else | 255 else |
254 a->password[0] = '\0'; | 256 a->password[0] = '\0'; |
255 | 257 |
256 i = gtk_clist_find_row_from_data(GTK_CLIST(list), a); | 258 i = gtk_clist_find_row_from_data(GTK_CLIST(list), a); |
259 gtk_clist_set_text(GTK_CLIST(list), i, 0, a->username); | |
257 gtk_clist_set_text(GTK_CLIST(list), i, 2, | 260 gtk_clist_set_text(GTK_CLIST(list), i, 2, |
258 (a->options & OPT_USR_AUTO) ? "True" : "False"); | 261 (a->options & OPT_USR_AUTO) ? "True" : "False"); |
259 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(a->protocol)); | 262 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(a->protocol)); |
260 | 263 |
261 tmp = u->opt_entries; | 264 tmp = u->opt_entries; |