aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-config-listener.c
diff options
context:
space:
mode:
authorSarfraaz Ahmed <asarfraaz@novell.com>2005-07-11 15:16:42 +0800
committerAhmed Sarfraaz <sarfraaz@src.gnome.org>2005-07-11 15:16:42 +0800
commit4dbbd163dd4a8866e9547ff40002b34ade4ff3b1 (patch)
tree04aac693323367be1ab12c38e528c553544726ba /plugins/exchange-operations/exchange-config-listener.c
parent21eb448cadb620929c16b8ca732bd759ac4d74bb (diff)
downloadgsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar.gz
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar.bz2
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar.lz
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar.xz
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.tar.zst
gsoc2013-evolution-4dbbd163dd4a8866e9547ff40002b34ade4ff3b1.zip
Patch submitted by ArunPrakash <arunp@novell.com> Newly added, to report
2005-07-11 Sarfraaz Ahmed <asarfraaz@novell.com> Patch submitted by ArunPrakash <arunp@novell.com> * exchange-operations.c (exchange_operations_report_error) : Newly added, to report errors using e_error_run. Also a list of error-ids is added. * exchange-config-listener.c (account_added) (account_removed) : Modified the usage of e_notice to e_error_run. Also the error from exchange_account_connect is reported using exchange_operations_report_error. * exchange-account-setup.c (btn_chpass_clicked) (org_gnome_exchange_settings) (print_error) (set_oof_info): Changed to use exchange_operations_report_error and e_error_run functions. * org-gnome-exchange-operations.error.xml : Newly added, defines the list of error messages used in the plugin. * Makefile.am : Modified for org-gnome-exchange-operations.error.xml svn path=/trunk/; revision=29707
Diffstat (limited to 'plugins/exchange-operations/exchange-config-listener.c')
-rw-r--r--plugins/exchange-operations/exchange-config-listener.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c
index 7991a7d956..bb85a07802 100644
--- a/plugins/exchange-operations/exchange-config-listener.c
+++ b/plugins/exchange-operations/exchange-config-listener.c
@@ -27,6 +27,7 @@
#endif
#include "exchange-config-listener.h"
+#include "exchange-operations.h"
#include <exchange-account.h>
#include <exchange-constants.h>
@@ -34,9 +35,8 @@
#include <e-folder-exchange.h>
#include <e2k-marshal.h>
#include <e2k-uri.h>
-// SURF : #include "mail-stub-listener.h"
-// SURF : #include <libedataserver/e-dialog-utils.h>
+#include <e-util/e-error.h>
#include <libedataserver/e-source.h>
#include <libedataserver/e-source-list.h>
@@ -833,6 +833,7 @@ account_added (EAccountList *account_list, EAccount *account)
{
ExchangeConfigListener *config_listener;
ExchangeAccount *exchange_account;
+ ExchangeAccountResult result;
if (!is_active_exchange_account (account))
return;
@@ -840,9 +841,7 @@ account_added (EAccountList *account_list, EAccount *account)
config_listener = EXCHANGE_CONFIG_LISTENER (account_list);
if (config_listener->priv->configured_account) {
/* Multiple accounts configured. */
- /* SURF : e_notice (NULL, GTK_MESSAGE_ERROR,
- _("You may only configure a single Exchange account"));
- */
+ e_error_run (NULL, "org-gnome-exchange-operations:single-account-error", NULL);
return;
}
@@ -872,7 +871,8 @@ account_added (EAccountList *account_list, EAccount *account)
g_signal_emit (config_listener, signals[EXCHANGE_ACCOUNT_CREATED], 0,
exchange_account);
add_sources (exchange_account);
- exchange_account_connect (exchange_account);
+ exchange_account_connect (exchange_account, NULL, &result);
+ exchange_operations_report_error (exchange_account, result);
add_new_sources (exchange_account);
}
@@ -1036,10 +1036,7 @@ account_changed (EAccountList *account_list, EAccount *account)
remove_account_esources (priv->exchange_account);
/* Nope. Let the user know we're ignoring him. */
- /* SURF : e_notice (NULL, GTK_MESSAGE_WARNING,
- _("Changes to Exchange account configuration will "
- "take\nplace after you quit and restart Evolution."));
- */
+ e_error_run (NULL, "org-gnome-exchange-operations:apply-restart", NULL);
/* But note the new URI so if he changes something else, we
* only warn again if he changes again.
@@ -1083,15 +1080,11 @@ account_removed (EAccountList *account_list, EAccount *account)
priv->configured_name = NULL;
} else {
if (account->enabled) {
- /* SURF : e_notice (NULL, GTK_MESSAGE_INFO,
- _("The Exchange account will be removed when you quit Evolution"));
- */
+ e_error_run (NULL, "org-gnome-exchange-operations:remove-quit", NULL);
}
else {
/* The account is in use. We can't remove it. */
- /* SURF : e_notice (NULL, GTK_MESSAGE_INFO,
- _("The Exchange account will be disabled when you quit Evolution"));
- */
+ e_error_run (NULL, "org-gnome-exchange-operations:disable-quit", NULL);
}
}
}