aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorShi Pu <shi.pu@sun.com>2006-02-15 14:44:14 +0800
committerHarry Lu <haip@src.gnome.org>2006-02-15 14:44:14 +0800
commit00f170eb7ef84cf3043fb9f7b0807c5a7e5a8e6b (patch)
tree0c114b380c73e9247d5fa848c3196b070dd20c44 /mail
parent3f4a07f14a296c475a3fe6d39d3c067fbbb309fb (diff)
downloadgsoc2013-evolution-00f170eb7ef84cf3043fb9f7b0807c5a7e5a8e6b.tar.gz
gsoc2013-evolution-00f170eb7ef84cf3043fb9f7b0807c5a7e5a8e6b.tar.zst
gsoc2013-evolution-00f170eb7ef84cf3043fb9f7b0807c5a7e5a8e6b.zip
See bug ** 325967
2006-02-15 Shi Pu <shi.pu@sun.com> See bug ** 325967 * em-account-editor.c: (emae_service_url_changed): When username entry value of "Sending Email" page/tab is not empty, check combo box of authmech, to pick up the authmech information. svn path=/trunk/; revision=31529
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/em-account-editor.c22
2 files changed, 31 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0af2a9d0f5..05749610ee 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2006-02-15 Shi Pu <shi.pu@sun.com>
+
+ See bug ** 325967
+
+ * em-account-editor.c: (emae_service_url_changed):
+ When username entry value of "Sending Email" page/tab is
+ not empty, check combo box of authmech, to pick up the authmech
+ information.
+
2006-02-13 Karsten Br�ckelmann <guenther@rudersport.de>
* em-account-editor.c: Fix the Account Editor / Security option to
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 64154cf2c5..23a9f5a15c 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1136,10 +1136,32 @@ emae_uri_changed(EMAccountEditorService *service, CamelURL *url)
static void
emae_service_url_changed(EMAccountEditorService *service, void (*setval)(CamelURL *, const char *), GtkEntry *entry)
{
+ GtkComboBox *dropdown;
+ int id;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ CamelServiceAuthType *authtype;
+
CamelURL *url = emae_account_url(service->emae, emae_service_info[service->type].account_uri_key);
const char *text = gtk_entry_get_text(entry);
setval(url, (text && text[0])?text:NULL);
+
+ if (text && text[0] && setval == camel_url_set_user) {
+ dropdown = service->authtype;
+ if(dropdown) {
+ id = gtk_combo_box_get_active (dropdown);
+ if (id != -1) {
+ model = gtk_combo_box_get_model (dropdown);
+ if (gtk_tree_model_iter_nth_child (model, &iter, NULL, id)) {
+ gtk_tree_model_get (model, &iter, 1, &authtype, -1);
+ if (authtype)
+ camel_url_set_authmech (url, authtype->authproto);
+ }
+ }
+ }
+ }
+
emae_uri_changed(service, url);
camel_url_free(url);
}
aph'>* news/nzbget: Update 18.1 -> 19.0bhughes2017-07-032-5/+4 * Remove Perl core modulessunpoet2017-07-012-7/+8 * - Update SABnzbd to 2.1.0.tdb2017-06-133-8/+7 * - Use correct license (see https://github.com/sabnzbd/sabyenc/issues/5).tdb2017-06-122-8/+7 * - Add LICENSEamdmi32017-06-124-16/+18 * New port: news/py-sabyenctdb2017-06-104-0/+35 * news/husky-sqpack is a subport for news/husky to purge squish and jam msgbases.eugen2017-05-253-0/+26 * Handle special permissions through pkg-plist and not through makejohans2017-05-222-20/+16 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-141-1/+2 * - Update to INN 2.6.1johans2017-05-123-10/+22 * news/nzbget: Update to 18.1feld2017-05-122-19/+12 * UNRAR description is now available in bsd.options.desc.mkfeld2017-04-271-1/+0 * - Fix plistmiwi2017-04-232-1/+3 * - Fix shebangsmiwi2017-04-191-1/+3 * - Optionize docsamdmi32017-04-101-6/+5 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-011-1/+1 * news/sabnzbdplus: Update to 1.2.3tdb2017-03-222-5/+5 * Remove all _USE=openssl occurrences.mat2017-03-151-1/+1 * Remove all USE_OPENSSL occurrences.mat2017-03-152-2/+2 * news/sabnzbdplus: Update to 1.2.1swills2017-02-282-11/+8 * news/nzbget: rc script improvementfeld2017-02-232-21/+2 * - add LICENSEdinoex2017-02-0911-102/+94 * - fix owner on suid binariesdinoex2017-02-017-28/+30 * - Update to 1.1.1amdmi32017-01-303-26/+23 * - make portlint happierdinoex2017-01-2910-66/+41 * - add LICENSEdinoex2017-01-294-8/+12 * Update WWW: SF redirects to https://sourceforge.net/projects/<PROJECT_NAME>/sunpoet2017-01-212-2/+2 * Reinplace the target of the symlink instead of the symlinkantoine2017-01-201-1/+1 * The output of tools like awk, date, sort, tr,... depends on the currenttijl2017-01-181-2/+2 * Update pan to 0.141.kwm2017-01-113-6/+9 * news/nzbget: Switch default option from GNUTLS to OPENSSLtz2017-01-102-3/+4 * Drop USE_GCC, this fixed a segfault crash when starting the program.kwm2017-01-101-2/+1 * - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOLamdmi32017-01-091-4/+0 * Assume "pkg-config zlib" works after 9.x reached EOLjbeich2017-01-042-4/+0 * Reassign to the perl collectiveadamw2017-01-031-1/+1 * leeym handed in his commit bit.rene2017-01-032-2/+2 * Update to tin 2.4.1johans2016-12-282-5/+7 * Replace USE_GCC=4.9+ by the canonical USE_GCC=yes (which now requiresgerald2016-12-261-1/+1 * news/nzbget: Update from 16.4 to 17.1tz2016-12-163-6/+12 * update MAINTAINER to my FreeBSD.org emaillifanov2016-12-141-1/+1 * Remove libintl.so.9 compatibility link that was added in r374303 totijl2016-12-09