diff src/dialogs.c @ 2582:5efa8077107f

[gaim-migrate @ 2595] add committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 23 Oct 2001 04:54:45 +0000
parents ad0d7c423669
children b2800bca74fe
line wrap: on
line diff
--- a/src/dialogs.c	Tue Oct 23 04:18:07 2001 +0000
+++ b/src/dialogs.c	Tue Oct 23 04:54:45 2001 +0000
@@ -869,7 +869,7 @@
 
 }
 
-void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group)
+void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group, char *alias)
 {
 	GtkWidget *mainbox;
 	GtkWidget *frame;
@@ -922,6 +922,8 @@
 
 	a->entry_for_alias = gtk_entry_new();
 	gtk_table_attach_defaults(GTK_TABLE(table), a->entry_for_alias, 1, 2, 1, 2);
+	if (alias != NULL)
+		gtk_entry_set_text(GTK_ENTRY(a->entry_for_alias), alias);
 
 	label = gtk_label_new(_("Group"));
 	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3);