aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-07 15:50:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-07 15:50:04 +0800
commit87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9 (patch)
tree0ae02a70ff84039f17090a4f6f6201e0c430da2a /mail
parentb1bfee4db1eed475d5528a5179eea1f6435e5ebe (diff)
downloadgsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar.gz
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar.bz2
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar.lz
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar.xz
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.tar.zst
gsoc2013-evolution-87e15f2f2b2e75d2dd82d60fc07c0c34d5c971e9.zip
Implemented.
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. (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
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/mail-accounts.c19
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