From dbbee50d3d566e217f77b217d27bcd228d7a9d51 Mon Sep 17 00:00:00 2001 From: Sarfraaz Ahmed Date: Thu, 23 Jun 2005 05:29:23 +0000 Subject: We no longer should be declaring the global_config_listener as a static 2005-06-22 Sarfraaz Ahmed * exchange-account-setup.c : We no longer should be declaring the global_config_listener as a static variable here. Also, added some NULL checks to avoid crashes. svn path=/trunk/; revision=29573 --- plugins/exchange-operations/ChangeLog | 6 ++++++ plugins/exchange-operations/exchange-account-setup.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index 351fcbc7fe..3a4255ba38 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,9 @@ +2005-06-22 Sarfraaz Ahmed + + * exchange-account-setup.c : We no longer should be declaring the + global_config_listener as a static variable here. Also, added some + NULL checks to avoid crashes. + 2005-06-15 Sushma Rai * exchange-account-setup.c (org_gnome_exchange_settings): Trying to diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 06dc3fbb63..dd35d7dcbf 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -47,8 +47,6 @@ #include "mail/em-config.h" -static ExchangeConfigListener *exchange_global_config_listener = NULL; - GtkWidget* org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data); GtkWidget *org_gnome_exchange_owa_url(EPlugin *epl, EConfigHookItemFactoryData *data); gboolean org_gnome_exchange_check_options(EPlugin *epl, EConfigHookPageCheckData *data); @@ -140,15 +138,22 @@ btn_chpass_clicked (GtkButton *button, gpointer data) /* FIXME: For now, we have only one account in the list. Find a way to handle multiple accounts. */ + if (!acclist) + return; account = acclist->data; old_password = exchange_account_get_password (account); + if (!old_password) { + printf ("could not fetch old password\n"); + return; + } + 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