comparison src/multi.c @ 3205:332df87cf3d6

[gaim-migrate @ 3222] Self-aliasing from the account editor. You can edit how your screenname shows up in sent messages without having yourself on your list. This is strictly client-side only--has no affect on what your buddies see. I'm thinking it might not be a bad idea to add the alias somewhere in the various select-account menus and lists. This could potentially fix the can't-tell-what-IRC-account-I'm-joining-channels-in problem, but I'm not sure the best way to do it right now--I'll do it tommorow. IM me if you have good ideas. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 04 May 2002 08:21:31 +0000
parents 319a66fc131f
children e71ade93b98f
comparison
equal deleted inserted replaced
3204:20769d05df16 3205:332df87cf3d6
273 273
274 a->options = u->options; 274 a->options = u->options;
275 a->protocol = u->protocol; 275 a->protocol = u->protocol;
276 txt = gtk_entry_get_text(GTK_ENTRY(u->name)); 276 txt = gtk_entry_get_text(GTK_ENTRY(u->name));
277 g_snprintf(a->username, sizeof(a->username), "%s", txt); 277 g_snprintf(a->username, sizeof(a->username), "%s", txt);
278 txt = gtk_entry_get_text(GTK_ENTRY(u->alias));
279 g_snprintf(a->alias, sizeof(a->alias), "%s", txt);
278 txt = gtk_entry_get_text(GTK_ENTRY(u->pass)); 280 txt = gtk_entry_get_text(GTK_ENTRY(u->pass));
279 if (a->options & OPT_USR_REM_PASS) 281 if (a->options & OPT_USR_REM_PASS)
280 g_snprintf(a->password, sizeof(a->password), "%s", txt); 282 g_snprintf(a->password, sizeof(a->password), "%s", txt);
281 else 283 else
282 a->password[0] = '\0'; 284 a->password[0] = '\0';
551 gtk_box_pack_start(GTK_BOX(u->pwdbox), u->pass, TRUE, TRUE, 0); 553 gtk_box_pack_start(GTK_BOX(u->pwdbox), u->pass, TRUE, TRUE, 0);
552 gtk_entry_set_visibility(GTK_ENTRY(u->pass), FALSE); 554 gtk_entry_set_visibility(GTK_ENTRY(u->pass), FALSE);
553 555
554 hbox = gtk_hbox_new(FALSE, 5); 556 hbox = gtk_hbox_new(FALSE, 5);
555 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); 557 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
558
559 label = gtk_label_new(_("Alias:"));
560 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
561
562 u->alias = gtk_entry_new();
563 gtk_box_pack_start(GTK_BOX(hbox), u->alias, TRUE, TRUE, 0);
564
565 hbox = gtk_hbox_new(FALSE, 5);
566 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
556 gtk_widget_show(hbox); 567 gtk_widget_show(hbox);
557 568
558 label = gtk_label_new(_("Protocol:")); 569 label = gtk_label_new(_("Protocol:"));
559 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); 570 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
560 571
565 576
566 gtk_widget_show_all(frame); 577 gtk_widget_show_all(frame);
567 578
568 if (u->user) { 579 if (u->user) {
569 gtk_entry_set_text(GTK_ENTRY(u->name), u->user->username); 580 gtk_entry_set_text(GTK_ENTRY(u->name), u->user->username);
581 gtk_entry_set_text(GTK_ENTRY(u->alias), u->user->alias);
570 gtk_entry_set_text(GTK_ENTRY(u->pass), u->user->password); 582 gtk_entry_set_text(GTK_ENTRY(u->pass), u->user->password);
571 } 583 }
572 584
573 p = find_prpl(u->protocol); 585 p = find_prpl(u->protocol);
574 if (p && (p->options & OPT_PROTO_NO_PASSWORD)) { 586 if (p && (p->options & OPT_PROTO_NO_PASSWORD)) {