diff 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
line wrap: on
line diff
--- a/src/multi.c	Sat May 04 04:20:42 2002 +0000
+++ b/src/multi.c	Sat May 04 08:21:31 2002 +0000
@@ -275,6 +275,8 @@
 	a->protocol = u->protocol;
 	txt = gtk_entry_get_text(GTK_ENTRY(u->name));
 	g_snprintf(a->username, sizeof(a->username), "%s", txt);
+	txt = gtk_entry_get_text(GTK_ENTRY(u->alias));
+	g_snprintf(a->alias, sizeof(a->alias), "%s", txt);
 	txt = gtk_entry_get_text(GTK_ENTRY(u->pass));
 	if (a->options & OPT_USR_REM_PASS)
 		g_snprintf(a->password, sizeof(a->password), "%s", txt);
@@ -553,6 +555,15 @@
 
 	hbox = gtk_hbox_new(FALSE, 5);
 	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
+
+	label = gtk_label_new(_("Alias:"));
+	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
+
+	u->alias = gtk_entry_new();
+	gtk_box_pack_start(GTK_BOX(hbox), u->alias, TRUE, TRUE, 0);
+
+	hbox = gtk_hbox_new(FALSE, 5);
+	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 	gtk_widget_show(hbox);
 
 	label = gtk_label_new(_("Protocol:"));
@@ -567,6 +578,7 @@
 
 	if (u->user) {
 		gtk_entry_set_text(GTK_ENTRY(u->name), u->user->username);
+		gtk_entry_set_text(GTK_ENTRY(u->alias), u->user->alias);		
 		gtk_entry_set_text(GTK_ENTRY(u->pass), u->user->password);
 	}