diff options
-rw-r--r-- | mail/ChangeLog | 2 | ||||
-rw-r--r-- | mail/mail-accounts.c | 19 |
2 files changed, 19 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 21f1cae416..983e87cc52 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,7 @@ 2001-01-07 Jeffrey Stedfast <fejj@helixcode.com> + * mail-accounts.c (mail_edit): Implemented. + * mail-account-editor.c (apply_clicked): Implemented. (ok_clicked): Implemented. (cancel_clicked): Implemented. diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 62ebb01556..396a573e1a 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -174,12 +174,27 @@ mail_add (GtkButton *button, gpointer data) } static void +mail_editor_destroyed (GtkWidget *widget, gpointer data) +{ + load_accounts (MAIL_ACCOUNTS_DIALOG (data)); +} + +static void mail_edit (GtkButton *button, gpointer data) { MailAccountsDialog *dialog = data; - MailConfigAccount *account; - /* open the editor and stuff */ + if (dialog->accounts->row >= 0) { + const MailConfigAccount *account; + MailAccountEditor *editor; + + account = gtk_clist_get_row_data (dialog->accounts, dialog->accounts_row); + editor = mail_account_editor_new (account); + gtk_signal_connect (GTK_OBJECT (editor), "destroy", + GTK_SIGNAL_FUNC (mail_editor_destroyed), + dialog); + gtk_widget_show (GTK_WIDGET (editor)); + } } static void |