From ff350e0cc76767df61dd7d60143abf260f822dfb Mon Sep 17 00:00:00 2001 From: Sarfraaz Ahmed Date: Mon, 22 Aug 2005 13:18:42 +0000 Subject: Use exchange_operations_get_exchange_account. Fetch the password and 2005-08-22 Sarfraaz Ahmed * exchange-account-setup.c (btn_fsize_clicked) (set_oof_info) : Use exchange_operations_get_exchange_account. * exchange-config-listener.c (exchange_config_listener_authenticate) : Fetch the password and connect. Added new * exchange-config-listener.h : Similar. * exchange-operations.c (exchange_operations_get_exchange_account) : Try authenticating if account is not found. svn path=/trunk/; revision=30199 --- plugins/exchange-operations/exchange-account-setup.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'plugins/exchange-operations/exchange-account-setup.c') diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 17f3ba343f..ae3f23fd16 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -157,12 +157,7 @@ btn_fsize_clicked (GtkButton *button, gpointer data) GtkListStore *model; GSList *acclist; - acclist = exchange_config_listener_get_accounts (exchange_global_config_listener); - - /* FIXME: For now, we have only one account in the list. - Find a way to handle multiple accounts. - */ - account = acclist->data; + account = exchange_operations_get_exchange_account (); model = exchange_account_folder_size_get_model (account); if (model) @@ -684,13 +679,9 @@ org_gnome_exchange_check_options(EPlugin *epl, EConfigHookPageCheckData *data) static void set_oof_info () { - GSList *accounts, *acc; - ExchangeAccount *account = NULL; + ExchangeAccount *account; - accounts = exchange_config_listener_get_accounts (exchange_global_config_listener); - for (acc = accounts; acc; acc = acc->next) { - account = acc->data; - } + account = exchange_operations_get_exchange_account (); if (!exchange_oof_set (account, oof_data->state, oof_data->message)) { -- cgit v1.2.3