[evolution] Bug #668631 - Report Folder->Subscriptions errors to users
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #668631 - Report Folder->Subscriptions errors to users
- Date: Wed, 25 Jan 2012 18:16:42 +0000 (UTC)
commit 1e0bac934f4f4a746feb600d37d455eaed6974a9
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 25 19:15:48 2012 +0100
Bug #668631 - Report Folder->Subscriptions errors to users
mail/em-subscription-editor.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c
index ceefe7c..a8869b6 100644
--- a/mail/em-subscription-editor.c
+++ b/mail/em-subscription-editor.c
@@ -30,6 +30,7 @@
#include <libemail-engine/mail-tools.h>
#include <libemail-engine/mail-ops.h>
+#include <e-util/e-dialog-utils.h>
#include <e-util/e-util.h>
#include <e-util/e-util-private.h>
@@ -278,7 +279,7 @@ subscription_editor_get_folder_info_done (CamelStore *store,
/* XXX Do something smarter with errors. */
if (error != NULL) {
g_warn_if_fail (folder_info == NULL);
- g_warning ("%s", error->message);
+ e_notice (GTK_WINDOW (editor), GTK_MESSAGE_ERROR, "%s", error->message);
g_error_free (error);
goto exit;
}
@@ -344,7 +345,7 @@ subscription_editor_subscribe_folder_done (CamelSubscribable *subscribable,
if (error == NULL)
tree_row_data->folder_info->flags |= CAMEL_FOLDER_SUBSCRIBED;
else {
- g_warning ("%s", error->message);
+ e_notice (GTK_WINDOW (context->editor), GTK_MESSAGE_ERROR, "%s", error->message);
g_error_free (error);
tree_row_data_free (tree_row_data);
goto exit;
@@ -472,7 +473,7 @@ subscription_editor_unsubscribe_folder_done (CamelSubscribable *subscribable,
if (error == NULL)
tree_row_data->folder_info->flags &= ~CAMEL_FOLDER_SUBSCRIBED;
else {
- g_warning ("%s", error->message);
+ e_notice (GTK_WINDOW (context->editor), GTK_MESSAGE_ERROR, "%s", error->message);
g_error_free (error);
tree_row_data_free (tree_row_data);
goto exit;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]