diff options
author | Praveen Kumar <kpraveen@novell.com> | 2005-07-01 18:06:24 +0800 |
---|---|---|
committer | Praveen Kumar <kpraveen@src.gnome.org> | 2005-07-01 18:06:24 +0800 |
commit | da4c46c126c59356c64030c1f05ddc2a3f72cad0 (patch) | |
tree | 708bee4677887bbfc1dd2fc3f7bcce13030d75c8 /plugins/exchange-operations/exchange-account-setup.c | |
parent | bffdf85285b26fca4783e5f9208a7e3b6d943674 (diff) | |
download | gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar.gz gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar.bz2 gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar.lz gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar.xz gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.tar.zst gsoc2013-evolution-da4c46c126c59356c64030c1f05ddc2a3f72cad0.zip |
Added new file entries for calendar , contacts and change-password enabled
2005-07-01 Praveen Kumar <kpraveen@novell.com>
* Makefile.am : Added new file entries for calendar , contacts
and change-password
* exchange-account-setup.c (btn_chpass_clicked) : enabled the code
* exchange-operations.c (exchange_operations_cta_add_node_to_tree) :
This now stores the relative uri of the node to the model
(exchange_operations_cta_select_node_from_tree) : Added new. This
selects the node for a given relative uri.
* exchange-operations.h : Similar
* org-gnome-exchange-operations.eplug.in : Added commit hook action
for calendar and contacts
* exchange-change-password.c : Added new
* exchange-calendar.c : Added new
* exchange-contacts.c : Added new
svn path=/trunk/; revision=29610
Diffstat (limited to 'plugins/exchange-operations/exchange-account-setup.c')
-rw-r--r-- | plugins/exchange-operations/exchange-account-setup.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index daae054a2f..84e08e5d4e 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -113,38 +113,21 @@ static void btn_chpass_clicked (GtkButton *button, gpointer data) { ExchangeAccount *account; - GSList *acclist; char *old_password, *new_password; -#if 0 - if (!exchange_global_config_listener) { - g_print ("FATAL: Exchange global config listener is not initialized.\n"); - return; - } - else { - g_print ("Exchange global config listener is initialized sucessfully.\n"); - } -#endif - 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. - */ - if (!acclist) - return; - account = acclist->data; + account = exchange_operations_get_exchange_account (); old_password = exchange_account_get_password (account); if (!old_password) { - printf ("could not fetch old password\n"); + g_print ("Could not fetch old password\n"); return; } - + new_password = exchange_get_new_password (old_password, TRUE); g_print ("Current password is \"%s\"\n", old_password); - //new_password = exchange_get_new_password (old_password, TRUE); exchange_account_set_password (account, old_password, new_password); -// g_free (old_password); -// g_free (new_password); + g_free (old_password); + g_free (new_password); } static void |