From da4c46c126c59356c64030c1f05ddc2a3f72cad0 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 1 Jul 2005 10:06:24 +0000 Subject: Added new file entries for calendar , contacts and change-password enabled 2005-07-01 Praveen Kumar * 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 --- .../exchange-operations/exchange-account-setup.c | 27 ++++------------------ 1 file changed, 5 insertions(+), 22 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 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 -- cgit v1.2.3