[evolution-ews] Do not reset the domain after fetching the hosturl.
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Do not reset the domain after fetching the hosturl.
- Date: Tue, 20 Sep 2011 06:25:06 +0000 (UTC)
commit f285adc86e6a4b812092ccb40d2ea35f0995712e
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Tue Sep 20 11:53:44 2011 +0530
Do not reset the domain after fetching the hosturl.
.../exchange-ews-account-setup.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index 73c4163..491dccd 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -185,25 +185,15 @@ url_changed (GtkWidget *entry, EConfig *config, const gchar *param)
{
EMConfigTargetAccount *target = (EMConfigTargetAccount *)(config->target);
CamelURL *url = NULL;
- const gchar *domain = NULL;
+ const gchar *uri_str = NULL;
gchar *url_string = NULL;
EAccount *account;
account = get_modified_account (target);
url = camel_url_new (e_account_get_string(account, E_ACCOUNT_SOURCE_URL), NULL);
- domain = gtk_entry_get_text (GTK_ENTRY(entry));
-
- if (domain && domain[0]) {
- CamelURL *hosturl;
- camel_url_set_param (url, param, domain);
- hosturl = camel_url_new (domain, NULL);
- if (hosturl) {
- camel_url_set_host (url, hosturl->host);
- camel_url_free (hosturl);
- }
- } else
- camel_url_set_param (url, param, NULL);
+ uri_str = gtk_entry_get_text (GTK_ENTRY(entry));
+ camel_url_set_param (url, param, uri_str);
url_string = camel_url_to_string (url, 0);
e_account_set_string (account, E_ACCOUNT_SOURCE_URL, url_string);
e_account_set_string (account, E_ACCOUNT_TRANSPORT_URL, url_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]