Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
2581:3e9906e1e5f6 | 2582:5efa8077107f |
---|---|
867 gtk_widget_show(b->account); | 867 gtk_widget_show(b->account); |
868 gtk_widget_show(b->account->parent); | 868 gtk_widget_show(b->account->parent); |
869 | 869 |
870 } | 870 } |
871 | 871 |
872 void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group) | 872 void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group, char *alias) |
873 { | 873 { |
874 GtkWidget *mainbox; | 874 GtkWidget *mainbox; |
875 GtkWidget *frame; | 875 GtkWidget *frame; |
876 GtkWidget *table; | 876 GtkWidget *table; |
877 GtkWidget *bbox; | 877 GtkWidget *bbox; |
920 label = gtk_label_new(_("Alias")); | 920 label = gtk_label_new(_("Alias")); |
921 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); | 921 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); |
922 | 922 |
923 a->entry_for_alias = gtk_entry_new(); | 923 a->entry_for_alias = gtk_entry_new(); |
924 gtk_table_attach_defaults(GTK_TABLE(table), a->entry_for_alias, 1, 2, 1, 2); | 924 gtk_table_attach_defaults(GTK_TABLE(table), a->entry_for_alias, 1, 2, 1, 2); |
925 if (alias != NULL) | |
926 gtk_entry_set_text(GTK_ENTRY(a->entry_for_alias), alias); | |
925 | 927 |
926 label = gtk_label_new(_("Group")); | 928 label = gtk_label_new(_("Group")); |
927 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); | 929 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); |
928 | 930 |
929 a->combo = gtk_combo_new(); | 931 a->combo = gtk_combo_new(); |