[evolution-ews] Set oab_url to gal esource and adapt the api change.



commit 33edb9d43c7663ce6b974df807c9b496e18d1a03
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Jun 28 16:37:12 2011 +0530

    Set oab_url to gal esource and adapt the api change.

 .../exchange-ews-account-listener.c                |    4 +++-
 .../exchange-ews-account-setup.c                   |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-listener.c b/src/account-setup-eplugin/exchange-ews-account-listener.c
index 46e6932..4656d59 100644
--- a/src/account-setup-eplugin/exchange-ews-account-listener.c
+++ b/src/account-setup-eplugin/exchange-ews-account-listener.c
@@ -246,8 +246,10 @@ add_gal_esource (CamelURL *url)
 	e_source_set_color_spec (source, "#EEBC60");
 
 	/* If oal_id is present it means the GAL is marked for offline usage, we do not check for offline_sync property */
-	if (oal_sel)
+	if (oal_sel) {
 		e_source_set_property (source, "oal_id", oal_id);
+		e_source_set_property (source, "oab_url", camel_url_get_param (url, "oaburl"));
+	}
 
 	e_source_set_property (source, "auth", "plain/password");
 	e_source_set_property (source, "completion", "true");
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index 225ed19..180abeb 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -498,7 +498,7 @@ fetch_button_clicked_cb (GtkButton *button, gpointer user_data)
 	/* pass user name while creating connection  to fetch oals */
 	cnc = e_ews_connection_new (oab_url, url->user, password, NULL, NULL, NULL);
 	cbdata->cancellable = cancellable;
-	e_ews_connection_get_oal_list_start (cnc, oab_url, ews_oal_list_ready, cancellable, cbdata);
+	e_ews_connection_get_oal_list_start (cnc, ews_oal_list_ready, cancellable, cbdata);
 
 	camel_url_free (url);
 	g_free (password);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]