diff options
author | Praveen Kumar <kpraveen@novell.com> | 2005-07-18 19:30:19 +0800 |
---|---|---|
committer | Praveen Kumar <kpraveen@src.gnome.org> | 2005-07-18 19:30:19 +0800 |
commit | a7120007fd48336faeb2011d5f74dc7206d637eb (patch) | |
tree | b4358fa4c195b3c58d8ea1caa762e48a395f1b33 /plugins/exchange-operations | |
parent | e035b8855f83ec1265ecfca7667b153ee6df581c (diff) | |
download | gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar.gz gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar.bz2 gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar.lz gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar.xz gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.tar.zst gsoc2013-evolution-a7120007fd48336faeb2011d5f74dc7206d637eb.zip |
Handle the case of user clicking "Cancel" button in "Change Password"
2005-07-18 Praveen Kumar <kpraveen@novell.com>
* exchange-account-setup.c (btn_chpass_clicked) : Handle the case
of user clicking "Cancel" button in "Change Password" dialog. Fixes
bug 310356.
(org_gnome_exchange_setting) : Removed the duplicate signal handler
registered for "Change Password" button.
svn path=/trunk/; revision=29790
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 8 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-account-setup.c | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index d9231af4df..83a3a65cb4 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,11 @@ +2005-07-18 Praveen Kumar <kpraveen@novell.com> + + * exchange-account-setup.c (btn_chpass_clicked) : Handle the case + of user clicking "Cancel" button in "Change Password" dialog. Fixes + bug 310356. + (org_gnome_exchange_setting) : Removed the duplicate signal handler + registered for "Change Password" button. + 2005-07-16 Sarfraaz Ahmed <asarfraaz@novell.com> * exchange-ask-password.c : Removed. Is no longer being used diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 8985669589..8e7dd2e2e0 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -128,6 +128,10 @@ btn_chpass_clicked (GtkButton *button, gpointer data) return; } new_password = exchange_get_new_password (old_password, TRUE); + if (!new_password) { + /* "Cacel" button was hit */ + return; + } g_print ("Current password is \"%s\"\n", old_password); result = exchange_account_set_password (account, old_password, new_password); if (result != EXCHANGE_ACCOUNT_CONNECT_SUCCESS) @@ -329,7 +333,6 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data) lbl_dass = (GtkLabel*) gtk_object_new (GTK_TYPE_LABEL, "label", _("Manage the delegate settings for Exchange account"), NULL); gtk_misc_set_alignment (GTK_MISC (lbl_dass), 0, 0.5); btn_dass = (GtkButton*) gtk_object_new (GTK_TYPE_BUTTON, "label", _("Delegation Assitant")); - gtk_signal_connect (GTK_OBJECT (btn_chpass), "clicked", G_CALLBACK (btn_chpass_clicked), NULL); gtk_signal_connect (GTK_OBJECT (btn_dass), "clicked", G_CALLBACK (btn_dass_clicked), NULL); /* Add items to the table */ gtk_table_attach_defaults (tbl_auth, GTK_WIDGET (lbl_chpass), 0, 1, 0, 1); |