From 13c1ac80f5a889a436562a771cf1615aa2454686 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Fri, 6 Apr 2007 12:57:03 +0000 Subject: [PATCH] 2007-04-06 Murray Cumming * src/maemo/modest-account-settings-dialog.c: (create_page_incoming), (modest_account_settings_dialog_set_account_name): Added comments about the need for new API in ModestAccountMgr to handle the authentication and secure-connection stuff that is stored in the options GSList* with hard-coded names. I will do this if nobody else gets there first. pmo-trunk-r1524 --- ChangeLog2 | 9 +++++++++ src/maemo/modest-account-settings-dialog.c | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog2 b/ChangeLog2 index f4e5ea7..2fd1111 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,5 +1,14 @@ 2007-04-06 Murray Cumming + * src/maemo/modest-account-settings-dialog.c: + (create_page_incoming), + (modest_account_settings_dialog_set_account_name): + Added comments about the need for new API in ModestAccountMgr to handle the authentication + and secure-connection stuff that is stored in the options GSList* with hard-coded names. + I will do this if nobody else gets there first. + +2007-04-06 Murray Cumming + * src/maemo/modest-account-settings-dialog.c: (save_configuration): Saved much of the incoming and outgoing data too, though I cannot yet see how to save the security stuff. diff --git a/src/maemo/modest-account-settings-dialog.c b/src/maemo/modest-account-settings-dialog.c index e6acf5b..9ec09ef 100644 --- a/src/maemo/modest-account-settings-dialog.c +++ b/src/maemo/modest-account-settings-dialog.c @@ -371,8 +371,6 @@ static GtkWidget* create_page_incoming (ModestAccountSettingsDialog *self) /* This will be filled by update_incoming_server_security_choices(). */ if (!self->combo_incoming_security) self->combo_incoming_security = GTK_WIDGET (easysetup_serversecurity_combo_box_new ()); - easysetup_serversecurity_combo_box_set_active_serversecurity ( - EASYSETUP_SERVERSECURITY_COMBO_BOX (self->combo_incoming_security), MODEST_PROTOCOL_SECURITY_NONE); GtkWidget *caption = hildon_caption_new (sizegroup, _("mcen_li_emailsetup_secure_connection"), self->combo_incoming_security, NULL, HILDON_CAPTION_OPTIONAL); gtk_widget_show (self->combo_incoming_security); @@ -687,6 +685,8 @@ void modest_account_settings_dialog_set_account_name (ModestAccountSettingsDialo gtk_entry_set_text( GTK_ENTRY (dialog->entry_incomingserver), incoming_account->hostname ? incoming_account->hostname : ""); + easysetup_serversecurity_combo_box_set_active_serversecurity ( + EASYSETUP_SERVERSECURITY_COMBO_BOX (dialog->combo_incoming_security), incoming_account->proto); update_incoming_server_title (dialog, incoming_account->proto); update_incoming_server_security_choices (dialog, incoming_account->proto); @@ -711,7 +711,9 @@ void modest_account_settings_dialog_set_account_name (ModestAccountSettingsDialo gtk_entry_set_text( GTK_ENTRY (dialog->entry_outgoing_password), outgoing_account->password ? outgoing_account->password : ""); - /* How do we get the auth setting from the server account struct?: */ + /* TODO: How do we get the auth setting from the server account struct?: */ + /* This seems to be in ->options, with hard-coded option names. + * This will need new API in ModestAccountMgr. */ easysetup_secureauth_combo_box_set_active_secureauth ( EASYSETUP_SECUREAUTH_COMBO_BOX (dialog->combo_outgoing_auth), MODEST_PROTOCOL_AUTH_NONE); on_combo_outgoing_auth_changed (GTK_COMBO_BOX (dialog->combo_outgoing_auth), dialog); -- 1.7.9.5