diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-04 05:37:00 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-04 05:37:00 +0800 |
commit | 4baef8309f7b216401269448ff5389296dd335c0 (patch) | |
tree | ae4bdaeba75356c4a8da72669a2939a1989ca8d4 | |
parent | 96484b36449d4a04042d91e0d770a7467f838dc9 (diff) | |
download | gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.gz gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.bz2 gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.lz gsoc2013-evolution-4baef8309f7b216401269448ff5389296dd335c0.tar.xz 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
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 11 | ||||
-rw-r--r-- | mail/mail-format.c | 3 |
3 files changed, 20 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 7752542572..c06bf4077a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +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. + 2001-08-03 Not Zed <NotZed@Ximian.com> * mail-session.c (get_password): return the source url for 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; diff --git a/mail/mail-format.c b/mail/mail-format.c index 391548601a..7522b1d674 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -916,7 +916,6 @@ write_headers (CamelMimeMessage *message, MailDisplay *md) b = 255 - (0.92 * (255 - b)); } - g_warning ("%d, %d, %d", r, g, b); sprintf (bgcolor, "%.2X%.2X%.2X", r, g, b); r = style->text[state].red; @@ -1397,7 +1396,7 @@ mail_write_authenticity (MailDisplay *md, CamelCipherValidity *valid) } if (valid && camel_cipher_validity_get_description (valid)) { - mail_error_write (md->html, md->stream, + mail_error_write (md->html, md->stream, "%s", camel_cipher_validity_get_description (valid)); mail_html_write (md->html, md->stream, "<br><br>"); } |