diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-06-23 13:29:23 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-06-23 13:29:23 +0800 |
commit | dbbee50d3d566e217f77b217d27bcd228d7a9d51 (patch) | |
tree | a0b513dc03eba20de0751cd322823ad2c2c1ac32 /plugins | |
parent | 7046702f96a51347a8566134c58d4d959371dc09 (diff) | |
download | gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.gz gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.bz2 gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.lz gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.xz gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.zst gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.zip |
We no longer should be declaring the global_config_listener as a static
2005-06-22 Sarfraaz Ahmed <asarfraaz@novell.com>
* 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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <asarfraaz@novell.com> + + * 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 <rsushma@novell.com> * 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 |