aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-04 05:37:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-04 05:37:00 +0800
commit4baef8309f7b216401269448ff5389296dd335c0 (patch)
treeae4bdaeba75356c4a8da72669a2939a1989ca8d4 /mail/mail-account-gui.c
parent96484b36449d4a04042d91e0d770a7467f838dc9 (diff)
downloadgsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.gz
gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.zst
gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.zip
Try to restore the choice the user had chosen before hitting the "Check
2001-08-03 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (build_auth_menu): Try to restore the choice the user had chosen before hitting the "Check Supported Types" button. * mail-format.c (write_headers): Removed a no-longer-needed g_warning. svn path=/trunk/; revision=11625
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index 19d7789742..05d2674699 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -222,9 +222,16 @@ build_auth_menu (MailAccountGuiService *service, GList *all_authtypes,
GList *supported_authtypes, gboolean check_supported)
{
GtkWidget *menu, *item, *first = NULL;
- CamelServiceAuthType *authtype, *sauthtype;
+ CamelServiceAuthType *preferred, *authtype, *sauthtype;
GList *l, *s;
+ if (service->authitem)
+ preferred = gtk_object_get_data (GTK_OBJECT (service->authitem), "authtype");
+ else
+ preferred = NULL;
+
+ service->authitem = NULL;
+
menu = gtk_menu_new ();
for (l = all_authtypes; l; l = l->next) {
@@ -238,6 +245,8 @@ build_auth_menu (MailAccountGuiService *service, GList *all_authtypes,
}
if (check_supported && !s)
gtk_widget_set_sensitive (item, FALSE);
+ else if (preferred == authtype)
+ first = item;
else if (!first)
first = item;