diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-09-28 22:30:54 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-09-28 22:30:54 +0800 |
commit | 5c7e94906345581fdd99c461f0c23cab3b8ebf4b (patch) | |
tree | b70b1d5bc8b8d9b966cc84ec2d4d840640c6cbbd /plugins/exchange-operations/exchange-calendar.c | |
parent | ebef4e5ed565ae236aed1e644bd62fb475e928f8 (diff) | |
download | gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar.gz gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar.bz2 gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar.lz gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar.xz gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.tar.zst gsoc2013-evolution-5c7e94906345581fdd99c461f0c23cab3b8ebf4b.zip |
Propogate the authentication mechanism to the backend. exchange-calendar.c
2005-09-28 Sarfraaz Ahmed <asarfraaz@novell.com>
* exchange-account-setup.c (owa_authenticate_user) : Propogate the
authentication mechanism to the backend.
* exchange-calendar.c
* exchange-contacts.c
* exchange-folder.c : Parse the new account uri.
svn path=/trunk/; revision=30413
Diffstat (limited to 'plugins/exchange-operations/exchange-calendar.c')
-rw-r--r-- | plugins/exchange-operations/exchange-calendar.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/exchange-operations/exchange-calendar.c b/plugins/exchange-operations/exchange-calendar.c index 708700ee5f..0117e18af7 100644 --- a/plugins/exchange-operations/exchange-calendar.c +++ b/plugins/exchange-operations/exchange-calendar.c @@ -83,7 +83,7 @@ e_exchange_calendar_get_calendars (ECalSourceType ftype) account = exchange_operations_get_exchange_account (); /* FIXME: Reconsider this hardcoding */ - uri_prefix = g_strconcat ("exchange://", account->account_filename, "/", NULL); + uri_prefix = g_strconcat ("exchange://", account->account_filename, "/;", NULL); prefix_len = strlen (uri_prefix); calendar_list = g_ptr_array_new (); @@ -99,6 +99,7 @@ e_exchange_calendar_get_calendars (ECalSourceType ftype) tmp = (gchar *)e_folder_get_physical_uri (folder); if (g_str_has_prefix (tmp, uri_prefix)) { ruri = g_strdup (tmp+prefix_len); /* ATTN: Shouldn't free this explictly */ + printf ("adding ruri : %s\n", ruri); g_ptr_array_add (calendar_list, (gpointer)ruri); } } @@ -124,7 +125,7 @@ e_exchange_calendar_pcalendar_on_change (GtkTreeView *treeview, ESource *source) gtk_tree_selection_get_selected(selection, &model, &iter); gtk_tree_model_get (model, &iter, CALENDARRURI_COL, &ruri, -1); - es_ruri = g_strconcat (account->account_filename, "/", ruri, NULL); + es_ruri = g_strconcat (account->account_filename, "/;", ruri, NULL); e_source_set_relative_uri (source, es_ruri); g_free (ruri); g_free (es_ruri); @@ -267,7 +268,7 @@ e_exchange_calendar_pcalendar (EPlugin *epl, EConfigHookItemFactoryData *data) int prefix_len; GtkTreeSelection *selection; - uri_prefix = g_strconcat (account->account_filename, "/", NULL); + uri_prefix = g_strconcat (account->account_filename, "/;", NULL); prefix_len = strlen (uri_prefix); tmpruri = (gchar*) rel_uri; @@ -325,6 +326,7 @@ e_exchange_calendar_commit (EPlugin *epl, EConfigTarget *target) int prefix_len; ExchangeAccount *account; ExchangeAccountFolderResult result; + ExchangeConfigListenerStatus status; gint offline_status; uri_text = e_source_get_uri (source); @@ -333,14 +335,12 @@ e_exchange_calendar_commit (EPlugin *epl, EConfigTarget *target) return ; } - exchange_config_listener_get_offline_status (exchange_global_config_listener, - &offline_status); - - if (offline_status == OFFLINE_MODE) + status = exchange_is_offline (&offline_status); + if (offline_status == OFFLINE_MODE || status != CONFIG_LISTENER_STATUS_OK) return; account = exchange_operations_get_exchange_account (); - path_prefix = g_strconcat (account->account_filename, "/", NULL); + path_prefix = g_strconcat (account->account_filename, "/;", NULL); prefix_len = strlen (path_prefix); g_free (path_prefix); |