From e0a96e0f961d1752d52a485101a721a1ec836541 Mon Sep 17 00:00:00 2001 From: Arunprakash Date: Mon, 25 Jul 2005 06:12:03 +0000 Subject: Changed the e_notice calls to e_error_run calls. Same. * 2005-07-25 Arunprakash * exchange-delegates.c (get_folder_security) (add_button_clicked_cb) (delegates_apply) : Changed the e_notice calls to e_error_run calls. * exchange-folder-permission.c (create_folder_subscription_dialog) : Same. * exchange-calendar.c (e_exchange_calendar_commit) : Same. * exchange-contacts.c (e_exchange_contacts_commit) : Same. * exchange-folder-subscription.c (create_folder_subscription_dialog) : Same * exchange-permissions-dialog.c (exchange_permissions_dialog_new) (dialog_response) (add_clicked): Same. * exchange-operations.c (exchange_operations_report_error) : Modified to report the quota value to the user. * org-gnome-exchange-operations.error.xml : Added few more error descriptions needed for the above changes. svn path=/trunk/; revision=29876 --- .../exchange-permissions-dialog.c | 35 +++++++++------------- 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'plugins/exchange-operations/exchange-permissions-dialog.c') diff --git a/plugins/exchange-operations/exchange-permissions-dialog.c b/plugins/exchange-operations/exchange-permissions-dialog.c index 46414d7bff..923f0ebae8 100644 --- a/plugins/exchange-operations/exchange-permissions-dialog.c +++ b/plugins/exchange-operations/exchange-permissions-dialog.c @@ -35,8 +35,10 @@ #include "e2k-utils.h" #include "e-folder-exchange.h" #include "exchange-account.h" +#include "exchange-operations.h" #include +#include #include #include #include @@ -223,8 +225,7 @@ exchange_permissions_dialog_new (ExchangeAccount *account, &results, &nresults); if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status) || nresults < 1) { lose: - e_notice (parent, GTK_MESSAGE_ERROR, - _("Could not read folder permissions")); + e_error_run (GTK_WINDOW (parent), ERROR_DOMAIN ":perm-read-error", NULL); gtk_widget_destroy (GTK_WIDGET (dialog)); return; } @@ -265,8 +266,7 @@ dialog_response (ExchangePermissionsDialog *dialog, int response, binsd = e2k_security_descriptor_to_binary (dialog->priv->sd); if (!binsd) { - e_notice (dialog, GTK_MESSAGE_ERROR, - _("Could not update folder permissions.")); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":perm-update-error", "", NULL); return; } @@ -294,10 +294,9 @@ dialog_response (ExchangePermissionsDialog *dialog, int response, gtk_widget_set_sensitive (GTK_WIDGET (dialog), TRUE); if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) { - e_notice (dialog, GTK_MESSAGE_ERROR, - _("Could not update folder permissions. %s"), - status == E2K_HTTP_UNAUTHORIZED ? - _("(Permission denied.)") : ""); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":perm-update-error", + status == E2K_HTTP_UNAUTHORIZED ? + _("(Permission denied.)") : "", NULL); return; } @@ -398,9 +397,8 @@ add_clicked (GtkButton *button, gpointer user_data) gc = exchange_account_get_global_catalog (dialog->priv->account); if (!gc) { - e_notice (dialog, GTK_MESSAGE_ERROR, - _("Unable to add user to access control list:\n" - "No Global Catalog server is configured for this account.")); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":acl-no-gcs-error", + NULL); return; } @@ -424,17 +422,13 @@ add_clicked (GtkButton *button, gpointer user_data) case E2K_GLOBAL_CATALOG_OK: break; case E2K_GLOBAL_CATALOG_NO_SUCH_USER: - e_notice (dialog, GTK_MESSAGE_ERROR, - _("No such user %s"), email); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":no-user-error", email, NULL); break; case E2K_GLOBAL_CATALOG_NO_DATA: - e_notice (dialog, GTK_MESSAGE_ERROR, - _("%s cannot be added to an access control list"), - email); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":acl-add-error", email, NULL); break; default: - e_notice (dialog, GTK_MESSAGE_ERROR, - _("Unknown error looking up %s"), email); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":perm-unknown-error", email, NULL); break; } g_free (email); @@ -450,9 +444,8 @@ add_clicked (GtkButton *button, gpointer user_data) -1); bsid2 = e2k_sid_get_binary_sid (sid2); if (e2k_sid_binary_sid_equal (bsid, bsid2)) { - e_notice (dialog, GTK_MESSAGE_ERROR, - _("%s is already in the list"), - entry->display_name); + e_error_run (GTK_WINDOW (dialog), ERROR_DOMAIN ":perm-existing-error", + entry->display_name, NULL); e2k_global_catalog_entry_free (gc, entry); gtk_tree_selection_select_iter (dialog->priv->list_selection, &iter); return; -- cgit v1.2.3