comparison src/multi.c @ 977:e5eac6b236f1

[gaim-migrate @ 987] small touch-ups. it was getting damn annoying that things would disappear when they weren't supposed to. hopefully this fixes that for good. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 11 Oct 2000 18:02:20 +0000
parents eb5a82d64ce5
children 82c5865f7cfe
comparison
equal deleted inserted replaced
976:2586b2a3725e 977:e5eac6b236f1
162 gtk_widget_show(list); 162 gtk_widget_show(list);
163 163
164 while (u) { 164 while (u) {
165 a = (struct aim_user *)u->data; 165 a = (struct aim_user *)u->data;
166 titles[0] = a->username; 166 titles[0] = a->username;
167 titles[1] = find_gaim_conn_by_name(a->username) ? "True" : "False"; 167 titles[1] = find_gaim_conn_by_name(a->username) ? "Yes" : "No";
168 titles[2] = (a->options & OPT_USR_AUTO) ? "True" : "False"; 168 titles[2] = (a->options & OPT_USR_AUTO) ? "True" : "False";
169 titles[3] = proto_name(a->protocol); 169 titles[3] = proto_name(a->protocol);
170 i = gtk_clist_append(GTK_CLIST(list), titles); 170 i = gtk_clist_append(GTK_CLIST(list), titles);
171 gtk_clist_set_row_data(GTK_CLIST(list), i, a); 171 gtk_clist_set_row_data(GTK_CLIST(list), i, a);
172 u = u->next; 172 u = u->next;
243 g_snprintf(u->password, sizeof(u->password), "%s", txt); 243 g_snprintf(u->password, sizeof(u->password), "%s", txt);
244 u->options = tmpusr.options; 244 u->options = tmpusr.options;
245 u->protocol = tmpusr.protocol; 245 u->protocol = tmpusr.protocol;
246 gtk_widget_destroy(newmod); 246 gtk_widget_destroy(newmod);
247 titles[0] = u->username; 247 titles[0] = u->username;
248 titles[1] = find_gaim_conn_by_name(u->username) ? "True" : "False"; 248 titles[1] = find_gaim_conn_by_name(u->username) ? "Yes" : "No";
249 titles[2] = (u->options & OPT_USR_AUTO) ? "True" : "False"; 249 titles[2] = (u->options & OPT_USR_AUTO) ? "True" : "False";
250 titles[3] = proto_name(u->protocol); 250 titles[3] = proto_name(u->protocol);
251 i = gtk_clist_append(GTK_CLIST(list), titles); 251 i = gtk_clist_append(GTK_CLIST(list), titles);
252 gtk_clist_set_row_data(GTK_CLIST(list), i, u); 252 gtk_clist_set_row_data(GTK_CLIST(list), i, u);
253 } 253 }
639 struct aim_user *u; 639 struct aim_user *u;
640 int i; 640 int i;
641 if (!acctedit) return; 641 if (!acctedit) return;
642 u = find_user(gc->username); 642 u = find_user(gc->username);
643 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u); 643 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u);
644 gtk_clist_set_text(GTK_CLIST(list), i, 1, "True"); 644 gtk_clist_set_text(GTK_CLIST(list), i, 1, "Yes");
645 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(gc->protocol)); 645 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(gc->protocol));
646 redo_convo_menus(); 646 redo_convo_menus();
647 } 647 }
648 648
649 void account_offline(struct gaim_connection *gc) 649 void account_offline(struct gaim_connection *gc)
651 struct aim_user *u; 651 struct aim_user *u;
652 int i; 652 int i;
653 if (!acctedit) return; 653 if (!acctedit) return;
654 u = find_user(gc->username); 654 u = find_user(gc->username);
655 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u); 655 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u);
656 gtk_clist_set_text(GTK_CLIST(list), i, 1, "False"); 656 gtk_clist_set_text(GTK_CLIST(list), i, 1, "No");
657 } 657 }
658 658
659 void auto_login() 659 void auto_login()
660 { 660 {
661 GList *u = aim_users; 661 GList *u = aim_users;