aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-account-setup.c
diff options
context:
space:
mode:
authorSarfraaz Ahmed <asarfraaz@novell.com>2005-08-22 21:18:42 +0800
committerAhmed Sarfraaz <sarfraaz@src.gnome.org>2005-08-22 21:18:42 +0800
commitff350e0cc76767df61dd7d60143abf260f822dfb (patch)
treeac4c1e93d353a6031525590ce8a4703dd3fc5f12 /plugins/exchange-operations/exchange-account-setup.c
parent78d8426bc15dda59c8ff1194c09655757bee5aef (diff)
downloadgsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar.gz
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar.bz2
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar.lz
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar.xz
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.tar.zst
gsoc2013-evolution-ff350e0cc76767df61dd7d60143abf260f822dfb.zip
Use exchange_operations_get_exchange_account. Fetch the password and
2005-08-22 Sarfraaz Ahmed <asarfraaz@novell.com> * 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
Diffstat (limited to 'plugins/exchange-operations/exchange-account-setup.c')
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c15
1 files changed, 3 insertions, 12 deletions
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)) {