From 87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 7 Jan 2001 07:50:04 +0000 Subject: Implemented. 2001-01-07 Jeffrey Stedfast * mail-accounts.c (mail_edit): Implemented. * mail-account-editor.c (apply_clicked): Implemented. (ok_clicked): Implemented. (cancel_clicked): Implemented. (source_auth_type_changed): Implemented. (source_auth_init): Implemented. (transport_construct_authmenu): Implemented. (transport_type_changed): Updated to change regenerate the auth option menu. (construct): Attached callbacks to OK, Apply and Cancel buttons. * mail-account-editor.c (source_auth_init): Use the new mail_config_check_service(). * mail-config-druid.c: Remove check_service() as it will be moved into mail-config. svn path=/trunk/; revision=7290 --- mail/ChangeLog | 2 ++ mail/mail-accounts.c | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'mail') 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 + * 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 @@ -173,13 +173,28 @@ mail_add (GtkButton *button, gpointer data) gtk_widget_show (GTK_WIDGET (druid)); } +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 -- cgit