From 1e0bac934f4f4a746feb600d37d455eaed6974a9 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 25 Jan 2012 19:15:48 +0100 Subject: Bug #668631 - Report Folder->Subscriptions errors to users --- mail/em-subscription-editor.c | 7 ++++--- 1 file 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 #include +#include #include #include @@ -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; -- cgit v1.2.3