aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-01-26 02:15:48 +0800
committerMilan Crha <mcrha@redhat.com>2012-01-26 02:15:48 +0800
commit1e0bac934f4f4a746feb600d37d455eaed6974a9 (patch)
tree8f3c94bda539bfa5b4e69989c8eb204cc18058b1
parent9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3 (diff)
downloadgsoc2013-evolution-1e0bac934f4f4a746feb600d37d455eaed6974a9.tar.gz
gsoc2013-evolution-1e0bac934f4f4a746feb600d37d455eaed6974a9.tar.zst
gsoc2013-evolution-1e0bac934f4f4a746feb600d37d455eaed6974a9.zip
Bug #668631 - Report Folder->Subscriptions errors to users
-rw-r--r--mail/em-subscription-editor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c
index ceefe7ca49..a8869b6485 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;